Github Add Inline Pr Comment
github_add_inline_pr_commentAdds an inline review comment to a line or range of lines in a pull request diff, enabling precise feedback on code changes without opening a full review.
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.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| body | Yes | ||
| author | Yes | ||
| html_url | Yes | ||
| created_at | Yes |