mirror of https://github.com/zulip/zulip.git
Add simple tools for fetching content of a pull request by ID.
This commit is contained in:
parent
b2a92877ff
commit
39e80b351d
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
set -x
|
||||
|
||||
request_id="$1"
|
||||
git fetch origin "pull/$request_id/head"
|
||||
git checkout origin/master -b "review-${request_id}"
|
||||
git reset --hard FETCH_HEAD
|
||||
git pull --rebase
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
set -x
|
||||
|
||||
request_id="$1"
|
||||
git fetch origin "pull/$request_id/head"
|
||||
git reset --hard FETCH_HEAD
|
Loading…
Reference in New Issue