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:
Jérémie Astori 2016-07-21 23:48:49 -04:00 committed by GitHub
commit 38d772c794

14
scripts/run-pr.sh Executable file
View 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