submitPendingReview
Publish the current user's pending pull request review to make all drafted comments visible, with optional approval status and summary comment; Data Center only.
Instructions
Submit (publish) the current user's pending review on a pull request. All pending comments become visible. Optionally set approval status and add a summary comment. Data Center only.
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": {
"repoSlug": "<repoSlug>",
"pullRequestId": "<pullRequestId>"
},
"name": "submitPendingReview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoSlug | Yes | Repository slug | |
| workspace | No | Bitbucket workspace or project key (uses default if omitted) | |
| commentText | No | Optional summary comment published alongside the review | |
| pullRequestId | Yes | Pull request ID | |
| participantStatus | No | Review verdict: APPROVED, NEEDS_WORK, or UNAPPROVED (default: no status change) | |
| lastReviewedCommit | No | SHA of the last commit reviewed (for staleness detection) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Tool-specific result payload | |
| status | Yes | Whether the tool call succeeded | |
| message | Yes | Human-readable status message |