Get PR Diff
bitbucket_get_pull_request_diffGet the unified text diff for a specific file in a pull request, showing additions and deletions.
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
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path to get the diff for | |
| diff_type | No | EFFECTIVE (merge result) or RANGE (commit range) | |
| whitespace | No | Whitespace handling: SHOW, IGNORE_ALL, or IGNORE_TRAILING | |
| project_key | Yes | The project key | |
| context_lines | No | Number of context lines around changes (default: 10) | |
| pull_request_id | Yes | The pull request ID number | |
| repository_slug | Yes | The repository slug | |
| response_format | No | Output format: markdown (default) or json | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |