Decline pull request
bb_decline_pull_requestDecline a pull request by project, repository, and PR ID. Include an optional rejection reason on Server/DC; on Cloud, post a comment to record why.
Instructions
Decline (reject) a pull request. Server/DC: optional message, version taken from the current payload. Cloud: decline accepts no message — post a comment if a reason should be recorded.
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_decline_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Reason for declining (Server/DC only). | |
| projectKey | Yes | Project key (target repository; on Cloud: workspace slug). | |
| pullRequestId | Yes | Pull request id. | |
| repositorySlug | Yes | Target repository slug. |