Contents

GitHub Merge Pull Request

GitHubMergePullRequestTool · Tools · Connections

Merge a pull request. Pass sha, the head SHA from github_get_pull_request, to refuse the merge if the branch moved since. GitHub explains a refusal (not mergeable, checks pending, method not allowed) in the error.

Parameters

NameTypeRequiredDescription
commit_messagestringNoMerge commit message; GitHub's default when absent.
commit_titlestringNoMerge commit title; GitHub's default when absent.
merge_methodanyNomerge (default), squash, or rebase, as the repository allows.
ownerstringNoRepository owner. Defaults to the connection's installation account or OAuth user; give it for organization or collaborator repositories.
pull_numberintegerYesPull request number.
repostringYesRepository name, without the owner.
shastringNoHead SHA the pull request must still be at, normally `head.sha` from github_get_pull_request; the merge is refused if the branch moved.