merge_pull_request
Merge an approved pull request with automatic version handling for optimistic locking. Supports various merge strategies like no-ff, squash, rebase.
Instructions
Merge an approved pull request. Fetches the current version automatically for optimistic locking.
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. | |
| message | No | Custom merge commit message. | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| strategy | No | Merge strategy ID. no-ff = merge commit, ff = fast-forward, ff-only = fast-forward only, squash = squash, rebase-no-ff = rebase + merge commit, rebase-ff-only = rebase + fast-forward. | |
| repository | Yes | Repository slug. |