manage_pull_requests
Manage Bitbucket pull requests: list, create, update, merge, approve, decline, and view diffs, commits, and diffstat.
Instructions
Unified tool covering all pull request operations (list, get, create, update, merge, approve, unapprove, decline, diff, diffstat, commits)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| draft | No | Create as a draft PR (for 'create') | |
| pr_id | No | Pull request ID | |
| query | No | Filter query (for 'list') | |
| state | No | Filter by state (MERGED, SUPERSEDED, OPEN, DECLINED) (for 'list') | |
| title | No | Title of the pull request (for 'create', 'update') | |
| action | Yes | Action to perform: 'list', 'get', 'create', 'update', 'merge', 'approve', 'unapprove', 'decline', 'get-diff', 'get-diffstat', 'get-commits' | |
| message | No | Commit message (for 'merge') | |
| pagelen | No | Results per page | |
| repo_slug | Yes | Repository slug | |
| workspace | Yes | Workspace slug | |
| description | No | Description of the pull request (for 'create', 'update') | |
| source_branch | No | Source branch name (for 'create') | |
| merge_strategy | No | Merge strategy (e.g. merge_commit, squash, fast_forward) (for 'merge') | |
| destination_branch | No | Destination branch name (for 'create') | |
| close_source_branch | No | Close source branch (for 'create', 'merge') |