decline_pull_request
Decline a Bitbucket pull request, optionally adding a comment, and pass version to save a fetch or prevent overwriting concurrent changes.
Instructions
Decline a pull request, optionally with a comment. Pass version to save a fetch (Server).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Reason for declining | |
| version | No | Entity version from a prior read; supplying it saves a fetch AND makes the write conditional — it fails on concurrent modification instead of overwriting. Omit to write against the latest state (auto-retried once). | |
| workspace | Yes | Project key (e.g., PROJ) | |
| repository | Yes | Repository slug | |
| pull_request_id | Yes | Pull request ID |