bitbucket_get_pull_request_diff
Retrieve unified text diffs showing additions and deletions for specific files in Bitbucket pull requests to review code changes.
Instructions
Get the text diff for a specific file in a pull request.
Returns the unified diff showing additions and deletions for the specified file.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_key | Yes | The project key | |
| repository_slug | Yes | The repository slug | |
| pull_request_id | Yes | The pull request ID number | |
| path | Yes | File path to get the diff for | |
| context_lines | No | Number of context lines around changes (default: 10) | |
| diff_type | No | EFFECTIVE (merge result) or RANGE (commit range) | |
| whitespace | No | Whitespace handling: SHOW, IGNORE_ALL, or IGNORE_TRAILING |