GitHub Create Review Comment
GitHubCreatePullRequestReviewCommentTool · Tools · Connections
Comment on a line, a range, or a whole file of a pull request's code, outside any pending review. commit_id is the commit commented on, normally head.sha from github_get_pull_request. line is the line in the file the comment ends on, on side RIGHT (the head, default) or LEFT (the base); start_line makes it a range. For a whole-file comment set subject_type file and leave line out. To answer a comment, use github_reply_to_pull_request_review_comment.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
body | string | Yes | Comment text. |
commit_id | string | Yes | Commit SHA the comment applies to, normally `head.sha` from github_get_pull_request. |
line | integer | No | Line the comment ends on, in the file on `side`; absent for a file comment. |
owner | string | No | Repository owner. Defaults to the connection's installation account or OAuth user; give it for organization or collaborator repositories. |
path | string | Yes | File path in the repository. |
pull_number | integer | Yes | Pull request number. |
repo | string | Yes | Repository name, without the owner. |
side | any | No | RIGHT for the head (default) or LEFT for the base. |
start_line | integer | No | First line of a multi-line range. |
start_side | any | No | Side of `start_line`. |
subject_type | any | No | file to comment on the whole file. |