Skip to main content
github.createPullRequestReviewComment creates a standalone inline comment on a pull request diff.
automations/comment-on-github-diff.automation.ts
Provide the repository, pullRequestNumber, Markdown body, reviewed commitId, and file path. For an inline comment, omit subjectType or set it to "line", then provide line and side. For a multi-line comment, also provide startLine and startSide together. For a whole-file comment, set subjectType: "file" and omit all line fields. Diff coordinates must exist in the selected commit. Returns the comment’s id, body, and file path. Requires Pull requests write permission.