bb_pr_comment
Add comments to Bitbucket pull requests with inline file/line anchoring, threaded replies, or general PR feedback.
Instructions
Add a comment to a pull request. Pass file_path and line together to anchor it inline on that line of the diff; pass parent_id to reply within an existing thread; pass neither for a general PR comment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Line number in the new file for an inline comment | |
| pr_id | Yes | Pull request ID | |
| content | Yes | Comment body (markdown) | |
| file_path | No | File to anchor an inline comment to | |
| parent_id | No | Comment ID to reply to | |
| repo_slug | No | Repository slug/name; defaults to the repo detected from the current directory's git remote | |
| workspace | No | Bitbucket workspace | |
| on_old_version | No | Anchor the line to the old file instead of the new one |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |