From 92685f57fabb2bf7e6196fb778181e8a996cb13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Thu, 14 Jul 2016 01:47:59 -0400 Subject: [PATCH] Add a script to easily run PRs from external contributors --- scripts/run-pr.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/run-pr.sh diff --git a/scripts/run-pr.sh b/scripts/run-pr.sh new file mode 100755 index 00000000..09fae266 --- /dev/null +++ b/scripts/run-pr.sh @@ -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