bitbucket_pull_requests
Manage Bitbucket pull requests to list, create, update, merge, approve, decline, and comment on code changes in repositories.
Instructions
Manage Bitbucket pull requests. Actions:
list: List pull requests in a repository
get: Get pull request details
create: Create a new pull request
update: Update a pull request
merge: Merge a pull request
approve: Approve a pull request
unapprove: Remove approval from a pull request
decline: Decline a pull request
list_comments: List comments on a pull request
add_comment: Add a comment to a pull request
get_diff: Get the diff of a pull request
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| workspace | Yes | Workspace slug | |
| repo_slug | Yes | Repository slug | |
| pr_id | No | Pull request ID (required for most actions except list/create) | |
| state | No | Filter by state | |
| q | No | Query string to filter PRs | |
| sort | No | Sort field (e.g., "-created_on") | |
| title | No | Pull request title | |
| description | No | Pull request description | |
| source_branch | No | Source branch name | |
| destination_branch | No | Destination branch (default: main branch) | |
| close_source_branch | No | Close source branch after merge | |
| reviewers | No | List of reviewer UUIDs | |
| merge_strategy | No | Merge strategy | |
| message | No | Merge commit message | |
| content | No | Comment content (markdown supported) | |
| inline_path | No | File path for inline comment | |
| inline_line | No | Line number for inline comment | |
| parent_id | No | Parent comment ID for replies | |
| page | No | Page number for pagination | |
| pagelen | No | Results per page (max 100) | |
| format | No | Output format: json (full), toon (compact tokens), compact (essential fields only) |