bb_get_pr
Retrieve detailed pull request information from Bitbucket, including status, reviewers, and code changes. Optionally include comments for comprehensive review. Requires workspace, repository, and PR ID inputs.
Instructions
Retrieves detailed information about a specific pull request identified by prId
within a repository (repoSlug
). If workspaceSlug
is not provided, the system will use your default workspace. Includes PR details, status, reviewers, and diff statistics. Set includeFullDiff
to true (default) for the complete code changes. Set includeComments
to true to also retrieve comments (default: false; Note: Enabling this may increase response time for pull requests with many comments). Returns rich information as formatted Markdown, including PR summary, code changes, and optionally comments. Requires Bitbucket credentials to be configured.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
includeComments | No | Set to true to retrieve comments for the pull request. Default: false. Note: Enabling this may increase response time for pull requests with many comments due to additional API calls. | |
includeFullDiff | No | Set to true to retrieve the full diff content instead of just the summary. Default: true (rich output by default) | |
prId | Yes | Numeric ID of the pull request to retrieve as a string. Must be a valid pull request ID in the specified repository. Example: "42" | |
repoSlug | Yes | Repository slug containing the pull request. This must be a valid repository in the specified workspace. Example: "project-api" | |
workspaceSlug | No | Workspace slug containing the repository. If not provided, the system will use your default workspace. Example: "myteam" |