bb_merge_pull_request
Merge an open Bitbucket pull request using fast-forward, squash, rebase, or custom strategies. Specify project, repo, and PR ID to get the merged pull request.
Instructions
Merge an OPEN PR. Strategy: 'noFF' (default three-way merge), 'fastForward', 'squash', 'rebase', or a custom variant string. Returns the merged PR.
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": {
"projectKey": "<projectKey>",
"repoSlug": "<repoSlug>",
"id": "<id>"
},
"name": "bb_merge_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| version | No | PR version for optimistic concurrency — auto-fetched if omitted | |
| repoSlug | Yes | ||
| strategy | No | Merge strategy (default noFF) | |
| projectKey | Yes | ||
| squashedCommitMessage | No | Custom commit message for squash strategies |