enable_pull_request_automerge
Automatically merge GitHub pull requests when all required checks pass, using specified merge methods like MERGE, SQUASH, or REBASE.
Instructions
Enable auto-merge for a specific pull request. This will automatically merge the PR when all required checks pass.
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": "enable_pull_request_automerge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Owner of the repository (username or organization) | |
| repo | Yes | Name of the repository | |
| pull_number | Yes | The pull request number | |
| merge_method | No | The merge method to use when auto-merging (MERGE, SQUASH, or REBASE) | |
| token | No | GitHub personal access token (optional) |