POST
github_pulls_create_review_comment.py
from charter.packs import github
result = await github.pulls_create_review_comment.ainvoke({"owner": ..., "repo": ..., "pullNumber": ..., "body": ..., "commitId": ..., "path": ...})
Requires
repo, read:user.Path parameters
| Field | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
pullNumber * | integer | The number that identifies the pull request. |
Body
| Field | Type | Description |
|---|---|---|
body * | string | The text of the review comment. |
commitId * | string | The SHA of the commit needing a comment. Use the pull request’s current head SHA — an older one may leave the comment attached to a line a later commit has already changed. |
path * | string | The relative path to the file that necessitates a comment. |
line | integer | Required unless using subject_type: file. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. ≥ 1 |
side | ReviewSide | In a split diff view, the side of the diff that the pull request’s changes appear on. Use LEFT for deletions that appear in red. Use RIGHT for additions that appear in green or unchanged lines that appear in white and are shown for context. |
startLine | integer | Required when using multi-line comments unless using in_reply_to. The first line in the pull request diff that your multi-line comment applies to. ≥ 1 |
startSide | ReviewSide | Required when using multi-line comments unless using in_reply_to. The starting side of the diff that the comment applies to. |
subjectType | SubjectType | The level at which the comment is targeted. file comments on the whole file and needs no line; absent, GitHub targets a line. |
inReplyTo | integer | The ID of an existing top-level review comment to reply to, from pulls_list_review_comments. When set, no other field here may be given: GitHub ignores them all except body. |