Remove requested reviewers from a pull request
Path Parameters
Body
application/json
Body
An array of user login
s that will be removed.
An array of team slug
s that will be removed.
Response
application/json
Response
Response
Pull Request Simple
Pull Request Simple
Example:https://api.github.com/repos/octocat/Hello-World/pulls/1347
Example:1
Example:MDExOlB1bGxSZXF1ZXN0MQ==
Example:https://github.com/octocat/Hello-World/pull/1347
Example:https://github.com/octocat/Hello-World/pull/1347.diff
Example:https://github.com/octocat/Hello-World/pull/1347.patch
Example:https://api.github.com/repos/octocat/Hello-World/issues/1347
Example:https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits
Example:https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments
Example:https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}
Example:https://api.github.com/repos/octocat/Hello-World/issues/1347/comments
Example:https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:1347
Example:open
Example:true
Example:new-feature
Simple User
Show Child Parameters
Example:Please pull these awesome changes
Show Child Parameters
A collection of related issues and pull requests.
Show Child Parameters
Example:too heated
Example:2011-01-26T19:01:12Z
Example:2011-01-26T19:01:12Z
Example:2011-01-26T19:01:12Z
Example:2011-01-26T19:01:12Z
Example:e5bd3914e2e596debea16f433f57875b5b90bcd6
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Groups of organization members that gives permissions on specified repositories.
Show Child Parameters
Show Child Parameters
Show Child Parameters
Show Child Parameters
How the author is associated with the repository.
Allowed values:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
Example:OWNER
Indicates whether or not the pull request is a draft.
Example:false
Path Parameters
Body
List reviews for a pull request
The list of reviews returns in chronological order.
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
The list of reviews returns in chronological order.
Pull Request Reviews are reviews on pull requests.
Unique identifier of the review
Example:42
Example:MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=
Simple User
Show Child Parameters
The text of the review.
Example:This looks great.
Example:CHANGES_REQUESTED
Example:https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80
Example:https://api.github.com/repos/octocat/Hello-World/pulls/12
Show Child Parameters
A commit SHA for the review.
Example:54bb654c9e6025347f57900a4a5c2313a96b8035
How the author is associated with the repository.
Allowed values:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
Example:OWNER
Path Parameters
Query Parameters
Create a review for 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.
Pull request reviews created in the PENDING
state do not include the submitted_at
property in the response.
Note: To comment on a specific line in a file, you need to first determine the position of that line in the diff. The GitHub REST API v3 offers the application/vnd.github.v3.diff
media type. To see a pull request diff, add this media type to the Accept
header of a call to the single pull request endpoint.
The position
value equals the number of lines down from the first “@@” hunk header in the file you want to add a comment. The line just below the “@@” line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.
Path Parameters
Body
application/json
Body
The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the position
. Defaults to the most recent commit in the pull request when you do not specify a value.
Required when using REQUEST_CHANGES
or COMMENT
for the event
parameter. The body text of the pull request review.
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. By leaving this blank, you set the review action state to PENDING
, which means you will need to submit the pull request review when you are ready.
Allowed values:APPROVEREQUEST_CHANGESCOMMENT
Use the following table to specify the location, destination, and contents of the draft review comment.
Show Child Parameters
Response
application/json
Response
Response
Pull Request Review
Pull Request Reviews are reviews on pull requests.
Unique identifier of the review
Example:42
Example:MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=
Simple User
Show Child Parameters
The text of the review.
Example:This looks great.
Example:CHANGES_REQUESTED
Example:https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80
Example:https://api.github.com/repos/octocat/Hello-World/pulls/12
Show Child Parameters
A commit SHA for the review.
Example:54bb654c9e6025347f57900a4a5c2313a96b8035
How the author is associated with the repository.
Allowed values:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
Example:OWNER
Path Parameters
Body
Get a review for a pull request
Path Parameters
review_id parameter
Response
application/json
Response
Response
Pull Request Review
Pull Request Reviews are reviews on pull requests.
Unique identifier of the review
Example:42
Example:MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=
Simple User
Show Child Parameters
The text of the review.
Example:This looks great.
Example:CHANGES_REQUESTED
Example:https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80
Example:https://api.github.com/repos/octocat/Hello-World/pulls/12
Show Child Parameters
A commit SHA for the review.
Example:54bb654c9e6025347f57900a4a5c2313a96b8035
How the author is associated with the repository.
Allowed values:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
Example:OWNER
Path Parameters
Update a review for a pull request
Update the review summary comment with new text.
Path Parameters
review_id parameter
Body
application/json
Body
The body text of the pull request review.
Response
application/json
Response
Response
Pull Request Review
Pull Request Reviews are reviews on pull requests.
Unique identifier of the review
Example:42
Example:MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=
Simple User
Show Child Parameters
The text of the review.
Example:This looks great.
Example:CHANGES_REQUESTED
Example:https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80
Example:https://api.github.com/repos/octocat/Hello-World/pulls/12
Show Child Parameters
A commit SHA for the review.
Example:54bb654c9e6025347f57900a4a5c2313a96b8035
How the author is associated with the repository.
Allowed values:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
Example:OWNER