Contents

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

NameTypeRequiredDescription
bodystringYesComment text.
commit_idstringYesCommit SHA the comment applies to, normally `head.sha` from github_get_pull_request.
lineintegerNoLine the comment ends on, in the file on `side`; absent for a file comment.
ownerstringNoRepository owner. Defaults to the connection's installation account or OAuth user; give it for organization or collaborator repositories.
pathstringYesFile path in the repository.
pull_numberintegerYesPull request number.
repostringYesRepository name, without the owner.
sideanyNoRIGHT for the head (default) or LEFT for the base.
start_lineintegerNoFirst line of a multi-line range.
start_sideanyNoSide of `start_line`.
subject_typeanyNofile to comment on the whole file.