node/tools/actions/rebase.sh
Antoine du Hamel 13d6950a6c
tools: add util scripts to land and rebase PRs
PR-URL: https://github.com/nodejs/node/pull/54656
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
2024-09-06 09:08:24 +02:00

12 lines
275 B
Bash
Executable File

#!/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
}
}'