mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Scripts to easily apply and remove github Pull Requests
This commit is contained in:
10
scripts/github-apply
Executable file
10
scripts/github-apply
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
LIBRENMS_DIR=`dirname "$(readlink -f "$0/..")"`
|
||||
cd $LIBRENMS_DIR
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "You must specify a PR number to apply a patch"
|
||||
else
|
||||
curl https://patch-diff.githubusercontent.com/raw/librenms/librenms/pull/${1}.patch | git apply -v ${2}
|
||||
fi
|
Reference in New Issue
Block a user