Github Add Inline Pr Comment
github_add_inline_pr_commentAdds inline review comments to specific lines or line ranges in a pull request diff, ensuring comments attach to changed or context lines GitHub accepts.
Instructions
Adds an inline review comment to a line, or to a range of lines, in a file within a PR. The line must fall inside the PR's diff hunks: GitHub rejects a comment on an unchanged line outside any hunk, and on a path not in the diff. A deleted line exists only on side LEFT. Pass head_sha from github_get_pr_content as expected_head_sha, so line numbers taken from that diff apply to that commit. See #517.
Workflow and conventions: github_get_skill('pr-review').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| path | Yes | ||
| side | No | LEFT for a line the PR deletes, RIGHT for one it adds or leaves as context | RIGHT |
| pr_number | Yes | ||
| repo_name | Yes | ||
| repo_owner | Yes | ||
| start_line | No | First line of a range ending at line. Omit to comment on line alone | |
| start_side | No | Side start_line sits on. Omit to match side | |
| comment_body | Yes | ||
| expected_head_sha | No | Attach the comment to this SHA, as github_get_pr_content reports it. Omit for the current head |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| body | Yes | ||
| author | Yes | ||
| html_url | Yes | ||
| created_at | Yes |