review_id parameter
Submit a review for a pull request
Path Parameters
Body
application/json
Body
The body text of the pull request review
The review action you want to perform. The review actions include: APPROVE
, REQUEST_CHANGES
, or COMMENT
. When you leave this blank, the API returns HTTP 422 (Unrecognizable entity) and sets the review action state to PENDING
, which means you will need to re-submit the pull request review using a review action.
Allowed values:APPROVEREQUEST_CHANGESCOMMENT
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
Update a pull request branch
Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch.
Path Parameters
Body
application/json
Body
The expected SHA of the pull request’s HEAD ref. This is the most recent commit on the pull request’s branch. If the expected SHA does not match the pull request’s HEAD, you will receive a 422 Unprocessable Entity
status. You can use the “List commits” endpoint to find the most recent commit SHA. Default: SHA of the pull request’s current HEAD ref.
Response
application/json
Response
Response
Path Parameters
Body
Get rate limit status for the authenticated user
Note: Accessing this endpoint does not count against your REST API rate limit.
Note: The rate
object is deprecated. If you’re writing new API client code or updating existing code, you should use the core
object instead of the rate
object. The core
object contains the same information that is present in the rate
object.
Response
application/json
Response
Response
Rate Limit Overview
Rate Limit Overview
Show Child Parameters
Show Child Parameters
List reactions for a team discussion comment
List the reactions to a team discussion comment. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Query Parameters
Returns a single reaction type. Omit this parameter to list all reactions to a team discussion comment.
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
team_slug parameter
Response
200 application/json
Response
Response
Reactions to conversations provide a way to help people express their feelings more simply and effectively.
Example:1
Example:MDg6UmVhY3Rpb24x
Simple User
Show Child Parameters
The reaction to use
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Example:heart
Example:2016-05-20T20:09:31Z
Path Parameters
Query Parameters
Create reaction for a team discussion comment
Create a reaction to a team discussion comment. OAuth access tokens require the write:discussion
scope. A response with an HTTP 200
status means that you already added the reaction type to this team discussion comment.
Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions
.
Path Parameters
team_slug parameter
Body
application/json
Body
The reaction type to add to the team discussion comment.
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Response
application/json
Response
Response
Reaction
Reactions to conversations provide a way to help people express their feelings more simply and effectively.
Example:1
Example:MDg6UmVhY3Rpb24x
Simple User
Show Child Parameters
The reaction to use
Allowed values:+1-1laughconfusedhearthoorayrocketeyes
Example:heart
Example:2016-05-20T20:09:31Z