Check pull request mergeability
bb_can_merge_pull_requestAnalyze pull request merge eligibility in read-only mode: return canMerge, conflicted flag, and veto details with summary and detail messages.
Instructions
Read-only merge veto analysis for a pull request: canMerge, conflicted flag and the list of vetoes with summary/detail messages. On Cloud the analysis derives from the PR state and the conflicts pre-check (no server-side veto API).
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>",
"pullRequestId": "<pullRequestId>"
},
"name": "bb_can_merge_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectKey | Yes | Project key (target repository; on Cloud: workspace slug). | |
| pullRequestId | Yes | Pull request id. | |
| repositorySlug | Yes | Target repository slug. |