merge_pull_request
Merge Bitbucket pull requests via workspace, repository, and PR ID; pass a version for conditional merge and to save a fetch.
Instructions
Merge a pull request. Pass version to save a fetch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | |
| commit_message | No | ||
| merge_strategy | No | Cloud only | |
| pull_request_id | Yes | Pull request ID | |
| close_source_branch | No | Cloud only |