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
| Name | Type | Required | Description |
|---|---|---|---|
commit_message | string | No | Merge commit message; GitHub's default when absent. |
commit_title | string | No | Merge commit title; GitHub's default when absent. |
merge_method | any | No | merge (default), squash, or rebase, as the repository allows. |
owner | string | No | Repository owner. Defaults to the connection's installation account or OAuth user; give it for organization or collaborator repositories. |
pull_number | integer | Yes | Pull request number. |
repo | string | Yes | Repository name, without the owner. |
sha | string | No | Head SHA the pull request must still be at, normally `head.sha` from github_get_pull_request; the merge is refused if the branch moved. |