merge_pull_request
Combine pull request changes into the target branch using merge, squash, or rebase, with optional dry run preview.
Instructions
Merge a 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": {
"repo": "<repo>",
"pr_number": "<pr_number>"
},
"name": "merge_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository in 'owner/repo' format. | |
| pr_number | Yes | Pull request number. | |
| commit_title | No | Custom merge commit title. | |
| merge_method | No | 'merge', 'squash', or 'rebase' (default: 'merge'). | merge |
| dry_run | No | If True, preview without executing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |