comment_id parameter
Create a reply for a review comment
Creates a reply to a review comment for a pull request. For the comment_id
, provide the ID of the review comment you are replying to. This must be the ID of a top-level review comment, not a reply to that comment. Replies to replies are not supported.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See “Secondary rate limits” and “Dealing with secondary rate limits” for details.
Path Parameters
Body
application/json
Body
The text of the review comment.
Response
application/json
Response
Response
Pull Request Review Comment
Pull Request Review Comments are comments on a portion of the Pull Request’s diff.
URL for the pull request review comment
Example:https://api.github.com/repos/octocat/Hello-World/pulls/comments/1
The ID of the pull request review to which the comment belongs.
Example:42
The ID of the pull request review comment.
Example:1
The node ID of the pull request review comment.
Example:MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw
The diff of the line that the comment refers to.
Example:@@ -16,33 +16,40 @@ public class Connection : IConnection...
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 index of the original line in the diff to which the comment applies.
Example:4
The SHA of the commit to which the comment applies.
Example:6dcb09b5b57875f334f61aebed695e2e4193db5e
The SHA of the original commit to which the comment applies.
Example:9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840
The comment ID to reply to.
Example:8
Simple User
Show Child Parameters
The text of the comment.
Example:We should probably include a check for null values here.
Example:2011-04-14T16:00:49Z
Example:2011-04-14T16:00:49Z
HTML URL for the pull request review comment.
Example:https://github.com/octocat/Hello-World/pull/1#discussion-diff-1
URL for the pull request that the review comment belongs to.
Example:https://api.github.com/repos/octocat/Hello-World/pulls/1
How the author is associated with the repository.
Allowed values:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
Example:OWNER
Show Child Parameters
The first line of the range for a multi-line comment.
Example:2
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.
Allowed values:LEFTRIGHT
Default:RIGHT
The line of the blob to which the comment applies. The last line of the range for a multi-line comment
Example:2
The line of the blob to which the comment applies. The last line of the range for a multi-line comment
Example:2
The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment
Allowed values:LEFTRIGHT
Default:RIGHT
Show Child Parameters
Example:"<p>comment body</p>"
Example:"comment body"
Path Parameters
Body
List commits on a pull request
Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the List commits endpoint.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
200 application/json
Response
Response
Commit
Example:https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==
Example:https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments
Show Child Parameters
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Show Child Parameters
Show Child Parameters
Diff Entry
Show Child Parameters
Path Parameters
Query Parameters
List pull requests files
Note: Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
Diff Entry
Example:bbcd538c8e72b8c175046e27cc8f907076331401
Example:file1.txt
Allowed values:addedremovedmodifiedrenamedcopiedchangedunchanged
Example:added
Example:103
Example:21
Example:124
Example:https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt
Example:https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt
Example:https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test
Example:file.txt
Path Parameters
Query Parameters
Check if a pull request has been merged
Path Parameters
Response
Response
Response if pull request has been merged
Path Parameters
Merge a pull request
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See “Secondary rate limits” and “Dealing with secondary rate limits” for details.
Path Parameters
Body
application/json
Body
Title for the automatic commit message.
Extra detail to append to automatic commit message.
SHA that pull request head must match to allow merge.
Merge method to use. Possible values are merge
, squash
or rebase
. Default is merge
.
Allowed values:mergesquashrebase
Response
application/json
Response
if merge was successful
Pull Request Merge Result
Pull Request Merge Result