mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-21 16:26:30 +00:00
Add a new command for applying github prs
This commit is contained in:
parent
743fda9641
commit
c33335478e
16
assets/default/bin/gh-am
Executable file
16
assets/default/bin/gh-am
Executable file
@ -0,0 +1,16 @@
|
||||
#! /bin/bash
|
||||
# gh-am Applies a Github PR as a patch
|
||||
# Author: ViViDboarder
|
||||
set -e
|
||||
|
||||
get_patch() {
|
||||
local pr_url=$1
|
||||
curl -L $pr_url.patch 2> /dev/null
|
||||
}
|
||||
|
||||
main() {
|
||||
local pr_url=$1
|
||||
get_patch $pr_url | git am
|
||||
}
|
||||
|
||||
main $*
|
Loading…
Reference in New Issue
Block a user