Merge pull request #500 from thelounge/astorije/run-pr-script
Add a script to easily run PRs from external contributors
This commit is contained in:
commit
38d772c794
14
scripts/run-pr.sh
Executable file
14
scripts/run-pr.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "No pull request ID was specified."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
git fetch https://github.com/thelounge/lounge.git refs/pull/${1}/head
|
||||||
|
git checkout FETCH_HEAD
|
||||||
|
npm install
|
||||||
|
npm test || true
|
||||||
|
npm start
|
Loading…
Reference in New Issue
Block a user