> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# pulls_create_review_comment

> Leave a comment on a specific line of a pull request's diff — the thing reviewing is made of. Needs the file `path`, the `line` in the diff, and `commit_id` set to the pull request's current head SHA. Use `side: LEFT` for a deleted line and `RIGHT` for an added or context line; add `start_line` to span a range. `pulls_create_review` leaves a verdict on the whole change instead.

<div className="tool-route"><span className="tool-row-method" data-method="POST">POST</span><code>{"https://api.github.com/repos/{owner}/{repo}/pulls/{pullNumber}/comments"}</code></div>

```python github_pulls_create_review_comment.py theme={null}
from charter.packs import github

result = await github.pulls_create_review_comment.ainvoke({"owner": ..., "repo": ..., "pullNumber": ..., "body": ..., "commitId": ..., "path": ...})
```

<Note>
  Requires `repo`, `read:user`.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                              | Type      | Description                                                                              |
  | ------------------------------------------------------------------ | --------- | ---------------------------------------------------------------------------------------- |
  | `owner` <span className="required" title="required">\*</span>      | `string`  | The account owner of the repository. The name is not case sensitive.                     |
  | `repo` <span className="required" title="required">\*</span>       | `string`  | The name of the repository without the `.git` extension. The name is not case sensitive. |
  | `pullNumber` <span className="required" title="required">\*</span> | `integer` | The number that identifies the pull request.                                             |
</div>

## Body

<div className="reference-table">
  | Field                                                            | Type                                                           | Description                                                                                                                                                                                                                                              |
  | ---------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `body` <span className="required" title="required">\*</span>     | `string`                                                       | The text of the review comment.                                                                                                                                                                                                                          |
  | `commitId` <span className="required" title="required">\*</span> | `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` <span className="required" title="required">\*</span>     | `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. <span className="field-constraints">≥ 1</span> |
  | `side`                                                           | [ReviewSide](/charter/charter/packs/github/pulls/objects#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. <span className="field-constraints">≥ 1</span>                                                      |
  | `startSide`                                                      | [ReviewSide](/charter/charter/packs/github/pulls/objects#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](/charter/charter/packs/github/pulls/objects#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`.                                                                        |
</div>
