Create pull request
bb_create_pull_requestCreate a pull request from a source branch to a destination branch. Add title, description, and reviewers to start code review.
Instructions
Creates a new pull request from a source branch into a destination 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": {
"title": "<title>",
"sourceBranch": "<sourceBranch>"
},
"name": "bb_create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Pull request title. | |
| repoSlug | No | Repository slug. Falls back to BITBUCKET_REPO_SLUG if omitted. | |
| reviewers | No | Usernames/UUIDs to add as reviewers. | |
| workspace | No | Bitbucket workspace slug. Falls back to BITBUCKET_WORKSPACE if omitted. | |
| description | No | Pull request description (Markdown). | |
| sourceBranch | Yes | Branch containing the changes. | |
| closeSourceBranch | No | Delete the source branch after merging. | |
| destinationBranch | No | Target branch. Defaults to the repository's main branch if omitted. |