merge_pr
Merge a pull request with configurable strategy and commit message. Closes the PR and updates repository history.
Instructions
Merge a pull request.
Calls POST /repos/{owner}/{repo}/pulls/{pull_number}/merge using the
requested merge strategy and optional commit-message overrides. This is
tagged destructiveHint=True because it changes repository history and
closes the pull request.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"pull_number": "<pull_number>"
},
"name": "merge_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| pull_number | Yes | Pull request number | |
| do | No | Merge strategy: 'merge', 'rebase', 'rebase-merge', or 'squash'. | merge |
| merge_title_field | No | Optional merge commit title. Ignored by strategies that do not create a merge commit. | |
| merge_message_field | No | Optional merge commit message body. Ignored by strategies that do not create a merge commit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||