List review comments in a repository
Lists review comments for all pull requests in a repository. By default, review comments are in ascending order by ID.
/repos/{owner}/{repo}/pulls/comments- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
Query Parameters
- sort stringoptional
- direction stringoptional
Can be either `asc` or `desc`. Ignored without `sort` parameter.
- since string<date-time>optional
Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
- per_page integeroptional
Results per page (max 100)
- page integeroptional
Page number of the results to fetch.
Responses
Response
Headers
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last" items Pull Request Review Comment objectPull Request Review Comments are comments on a portion of the Pull Request's diff.
Pull Request Review Comments are comments on a portion of the Pull Request's diff.
_links objectrequired
html objectrequired
Example: https://github.com/octocat/Hello-World/pull/1#discussion-diff-1
pull_request objectrequired
Example: https://api.github.com/repos/octocat/Hello-World/pulls/1
self objectrequired
Example: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1
How the author is associated with the repository.
Example: OWNER
The text of the comment.
Example: We should probably include a check for null values here.
Example: "<p>comment body</p>"
Example: "comment body"
The SHA of the commit to which the comment applies.
Example: 6dcb09b5b57875f334f61aebed695e2e4193db5e
Example: 2011-04-14T16:00:49Z
The diff of the line that the comment refers to.
Example: @@ -16,33 +16,40 @@ public class Connection : IConnection...
HTML URL for the pull request review comment.
Example: https://github.com/octocat/Hello-World/pull/1#discussion-diff-1
The ID of the pull request review comment.
Example: 1
The comment ID to reply to.
Example: 8
The line of the blob to which the comment applies. The last line of the range for a multi-line comment
Example: 2
The node ID of the pull request review comment.
Example: MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw
The SHA of the original commit to which the comment applies.
Example: 9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840
The line of the blob to which the comment applies. The last line of the range for a multi-line comment
Example: 2
The index of the original line in the diff to which the comment applies.
Example: 4
The first line of the range for a multi-line comment.
Example: 2
The relative path of the file to which the comment applies.
Example: config/database.yaml
The line index in the diff to which the comment applies.
Example: 1
The ID of the pull request review to which the comment belongs.
Example: 42
URL for the pull request that the review comment belongs to.
Example: https://api.github.com/repos/octocat/Hello-World/pulls/1
reactions Reaction Rollup objectoptional
The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment
The first line of the range for a multi-line comment.
Example: 2
The side of the first line of the range for a multi-line comment.
Example: 2011-04-14T16:00:49Z
URL for the pull request review comment
Example: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1
user Simple User objectrequiredSimple User
Simple User
Example: https://github.com/images/error/octocat_happy.gif
Example: https://api.github.com/users/octocat/events{/privacy}
Example: https://api.github.com/users/octocat/followers
Example: https://api.github.com/users/octocat/following{/other_user}
Example: https://api.github.com/users/octocat/gists{/gist_id}
Example: 41d064eb2195891e12d0413f63227ea7
Example: https://github.com/octocat
Example: 1
Example: octocat
Example: MDQ6VXNlcjE=
Example: https://api.github.com/users/octocat/orgs
Example: https://api.github.com/users/octocat/received_events
Example: https://api.github.com/users/octocat/repos
Example: "2020-07-09T00:17:55Z"
Example: https://api.github.com/users/octocat/starred{/owner}{/repo}
Example: https://api.github.com/users/octocat/subscriptions
Example: User
Example: https://api.github.com/users/octocat