get_pull_request_diff
Retrieve code changes from a Bitbucket pull request to review modifications, optionally focusing on specific files or adjusting context lines for clarity.
Instructions
Get the diff (code changes) for a Pull Request.
Args: repo_slug: Repository slug (name) pr_id: Pull Request ID file_path: Optional specific file path to get diff for (recommended for large PRs) context_lines: Number of context lines around changes (default: 3) workspace: Bitbucket workspace (optional if configured)
Returns: The diff content as text
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| pr_id | Yes | ||
| file_path | No | ||
| context_lines | No | ||
| workspace | No |