mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Add simple tools for fetching content of a pull request by ID.
This commit is contained in:
10
tools/fetch-rebase-pull-request
Executable file
10
tools/fetch-rebase-pull-request
Executable file
@@ -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
|
||||
|
7
tools/reset-to-pull-request
Executable file
7
tools/reset-to-pull-request
Executable file
@@ -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
|
Reference in New Issue
Block a user