Skip to main content
github.updatePullRequest changes a pull request’s title, body, target branch, state, or maintainer permissions.
automations/update-github-pull-request.automation.ts
Provide owner, repository, and positive integer pullRequestNumber. Optional replacements are base, body, maintainerCanModify, and title. Optional second argument { account } selects the GitHub binding. state accepts "open" or "closed". Inputs accept compatible signals. Returns the updated pull request’s id, number, title, and head ref and sha. Changing base can change the diff and mergeability. GitHub validates branch access and state transitions.