get_pull_request
Retrieve a Bitbucket pull request's metadata, reviewer status, merge info, comments, and changed files; toggle includes for metadata-only reads.
Instructions
Get a pull request: metadata, reviewer status, merge info, comments and changed files. Set include_comments/include_file_changes false for a 1-call metadata read; include_tasks lists open/resolved tasks. Response carries version for follow-up mutations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Project key (e.g., PROJ) | |
| repository | Yes | Repository slug | |
| comment_limit | No | Max comments embedded (default 20) | |
| include_tasks | No | Embed PR tasks (Server only, default false) | |
| pull_request_id | Yes | Pull request ID | |
| include_comments | No | Embed active comments (default true) | |
| include_file_changes | No | Embed changed-file list (default true) |