Add a script to easily run PRs from external contributors

This commit is contained in:
Jérémie Astori 2016-07-14 01:47:59 -04:00
parent 4920cfeed9
commit 92685f57fa

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