1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

PR testing tool

This commit is contained in:
Jerry Vonau 2017-07-08 20:56:42 -05:00 committed by georgejhunt
parent 8b9c7de777
commit 7b58a00272

28
scripts/test-pr Executable file
View file

@ -0,0 +1,28 @@
#!/bin/bash
# PR #
PULL=""
# iiab jv tm gh
# optional repo where the PR lives default iiab
USER=
# PR in jvonau
case $USER in
jv)
USER=jvonau
;;
tm)
USER=tim-moody
;;
gh)
USER=georgejhunt
;;
*)
USER=iiab
;;
esac
cd /opt/iiab/iiab
wget https://github.com/$USER/iiab/pull/$PULL.diff -o /tmp/$PULL.diff
echo "patching..."
patch -p 1 -i $PULL.diff
rm /tmp/$PULL.diff