bb_merge_pull_request
Merge a pull request in Bitbucket with strategy options (merge commit, squash, fast-forward) and close source branch option. Confirmation required for this destructive action.
Instructions
Merge a pull request (destructive action, requires confirmation)
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_slug": "<repo_slug>",
"pr_id": "<pr_id>",
"confirm": "<confirm>"
},
"name": "bb_merge_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr_id | Yes | Pull request ID | |
| confirm | Yes | Must be true to confirm this destructive action | |
| repo_slug | Yes | Repository slug | |
| workspace | No | Bitbucket workspace slug (uses default if not provided) | |
| merge_strategy | No | Merge strategy | |
| close_source_branch | No | Close source branch after merge |