merge_pull_request
Merges an approved Bitbucket pull request into its target branch using a chosen merge strategy; provide the repository and PR ID.
Instructions
Merge an approved pull request into the target branch.
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": {
"repository": "<repository>",
"prId": "<prId>"
},
"name": "merge_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | Pull request ID to merge. | |
| message | No | Custom merge commit message. | |
| project | No | Bitbucket project key (optional if default project configured). | |
| strategy | No | Merge strategy (merge-commit, squash, fast-forward). | |
| repository | Yes | Repository slug containing the pull request. |