bb_get_pr_file_content
Fetch a file's content from both the source and destination branches of a Bitbucket pull request to enable side-by-side diffs and review.
Instructions
Get one file's content at both the source and destination branches of a pull request, for side-by-side review
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr_id | Yes | Pull request ID | |
| file_path | Yes | Path of the file to fetch | |
| repo_slug | No | Repository slug/name; defaults to the repo detected from the current directory's git remote | |
| workspace | No | Bitbucket workspace | |
| include_both | No | Fetch both sides; false fetches only the source |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |