mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-16 08:26:30 +00:00
17 lines
230 B
Plaintext
17 lines
230 B
Plaintext
|
#! /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 $*
|