mirror of
https://github.com/nodejs/node.git
synced 2024-11-28 14:33:11 +01:00
12 lines
275 B
Bash
12 lines
275 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -xe
|
||
|
|
||
|
# shellcheck disable=SC2016
|
||
|
gh api graphql -F "prID=$(gh pr view "$1" --json id --jq .id || true)" -f query='
|
||
|
mutation RebasePR($prID: ID!) {
|
||
|
updatePullRequestBranch(input:{pullRequestId:$prID,updateMethod:REBASE}) {
|
||
|
clientMutationId
|
||
|
}
|
||
|
}'
|