bb_get_pull_request_diff
Retrieve the unified diff of a Bitbucket pull request as raw text. Optionally filter diff to a specific file path.
Instructions
Get the unified diff for a Bitbucket PR. Returns raw diff text.
Args: pull_request_id: The PR id (number). file_path: Optional file path filter. workspace: Bitbucket workspace slug. repo: Repository slug.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository slug. Defaults to BITBUCKET_DEFAULT_REPO. | |
| file_path | No | Optional: filter the diff to a single file path. | |
| workspace | No | Bitbucket workspace slug. Defaults to BITBUCKET_WORKSPACE. | |
| pull_request_id | Yes | The PR id (number). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |