Create pull request
bb_create_pull_requestOpen a pull request between source and target branches, including fork repositories. Pre-fills reviewers when available; otherwise reviewers must be added manually.
Instructions
Open a pull request. Supports forks via fromProjectKey/fromRepositorySlug. Tries the required-reviewers service first to pre-fill reviewers; if it is unavailable (400/404) the tool proceeds and notes that reviewers must be added manually.
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>",
"repositorySlug": "<repositorySlug>",
"title": "<title>",
"fromBranch": "<fromBranch>",
"toBranch": "<toBranch>"
},
"name": "bb_create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Pull request title. | |
| toBranch | Yes | Target branch name (without refs/heads/). | |
| reviewers | No | Explicit reviewer usernames (on Cloud: usernames or '{uuid}' strings); overrides the required-reviewers service (Server/DC). | |
| fromBranch | Yes | Source branch name (without refs/heads/). | |
| projectKey | Yes | Project key (target repository; on Cloud: workspace slug). | |
| description | No | Pull request description (markdown). | |
| fromProjectKey | No | Source project key for fork PRs (default: projectKey). | |
| repositorySlug | Yes | Target repository slug. | |
| fromRepositorySlug | No | Source repository slug for fork PRs (default: repositorySlug). |