From 7b58a0027293913b0f2168bb519665bcb34ce86d Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sat, 8 Jul 2017 20:56:42 -0500 Subject: [PATCH] PR testing tool --- scripts/test-pr | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 scripts/test-pr diff --git a/scripts/test-pr b/scripts/test-pr new file mode 100755 index 000000000..f134f2b6d --- /dev/null +++ b/scripts/test-pr @@ -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 +