Skip to main content
github.updatePullRequestBranch updates a pull request’s head branch with changes from its base branch.
automations/update-github-pr-branch.automation.ts
Provide the repository and pullRequestNumber. Optional expectedHeadSha prevents updating a branch that changed since you read it. Returns GitHub’s asynchronous message and url when present. GitHub may reject conflicting branches or repositories that disable update-branch. Requires Pull requests and Contents write permissions. For a pull request from a fork, the GitHub App installation must also have access to the head repository.