GET
/repos/{owner}/{repo}/pulls/commentsList review comments in a repository
Lists review comments across all pull requests in a repository, ordered by ID in ascending order by default. Use sort, direction, and since to control the results, and select a custom media type to receive the comment body as raw Markdown, plain text, rendered HTML, or all three. Use page and per_page to paginate the results.
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The repository name without the `.git` extension. The name is not case sensitive.
sortstringoptional
Sort review comments by `created`, `updated`, or `created_at`.
directionstringoptional
Sort direction: `asc` or `desc`. Ignored when `sort` is omitted.
sincestringoptional
Return comments last updated after this timestamp, in ISO 8601 format (`YYYY-MM-DDTHH:MM:SSZ`).
per_pageintegeroptional
Number of results per page. Defaults to 30 when omitted. Maximum 100.
pageintegeroptional
Page number of results to retrieve. Defaults to 1 when omitted.
200Returns an array of pull request review comments, including comment text, author, timestamps, and the file and diff context each comment refers to. The body representation depends on the requested media type.
urlstringrequired
URL for the pull request review comment
pull_request_review_idintegerrequired
The ID of the pull request review to which the comment belongs.
idintegerrequired
The ID of the pull request review comment.
node_idstringrequired
The node ID of the pull request review comment.
diff_hunkstringrequired
The diff of the line that the comment refers to.
pathstringrequired
The relative path of the file to which the comment applies.
positionintegeroptional
The line index in the diff to which the comment applies. This field is closing down; use `line` instead.
original_positionintegeroptional
The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.
commit_idstringrequired
The SHA of the commit to which the comment applies.
original_commit_idstringrequired
The SHA of the original commit to which the comment applies.
in_reply_to_idintegeroptional
The comment ID to reply to.
userobjectrequired
A GitHub user.
bodystringrequired
The text of the comment.
created_atstringrequired
updated_atstringrequired
html_urlstringrequired
HTML URL for the pull request review comment.
pull_request_urlstringrequired
URL for the pull request that the review comment belongs to.
author_associationstringrequired
How the author is associated with the repository.
_linksobjectrequired
start_lineintegeroptional
The first line of the range for a multi-line comment.
original_start_lineintegeroptional
The first line of the range for a multi-line comment.
start_sidestringoptional
The side of the first line of the range for a multi-line comment.
lineintegeroptional
The line of the blob to which the comment applies. The last line of the range for a multi-line comment
original_lineintegeroptional
The line of the blob to which the comment applies. The last line of the range for a multi-line comment
sidestringoptional
The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment
subject_typestringoptional
The level at which the comment is targeted, can be a diff line or a file.
reactionsobjectoptional
body_htmlstringoptional
body_textstringoptional
Error handling
The owner and repo path parameters must identify a repository. If supplied, sort must be created, updated, or created_at, and direction must be asc or desc; direction is ignored without sort. Supply since as an ISO 8601 datetime; per_page defaults to 30 and has a maximum of 100, and page defaults to 1.