get_pull_request_diff
Retrieve and filter pull request diffs by specifying context lines, file paths, or inclusion/exclusion patterns to streamline code review and change analysis.
Instructions
Get the diff/changes for a pull request with optional filtering
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_lines | No | Number of context lines around changes (optional, default: 3) | |
exclude_patterns | No | Array of glob patterns to exclude (e.g., ["*.lock", "*.svg"]) (optional) | |
file_path | No | Specific file path to get diff for (e.g., "src/index.ts") (optional) | |
include_patterns | No | Array of glob patterns to include (e.g., ["*.res", "src/**/*.js"]) (optional) | |
pull_request_id | Yes | Pull request ID | |
repository | Yes | Repository slug (e.g., "my-repo") | |
workspace | Yes | Bitbucket workspace/project key (e.g., "PROJ") |