mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 22:54:15 +00:00
Add a script to easily run PRs from external contributors
This commit is contained in:
parent
4920cfeed9
commit
92685f57fa
1 changed files with 14 additions and 0 deletions
14
scripts/run-pr.sh
Executable file
14
scripts/run-pr.sh
Executable 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
|
Loading…
Reference in a new issue