v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

Create a review to a pull request

post/repos/{owner}/{repo}/pulls/{index}/reviews

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

indexinteger required

index of the pull request

Request body

bodystring
commit_idstring
event'APPROVED' | 'PENDING' | 'COMMENT' | 'REQUEST_CHANGES' | 'REQUEST_REVIEW'

Response

PullReview

bodystring
comments_countinteger
commit_idstring
dismissedboolean
html_urlstring

HTMLURL is the web URL for viewing the review

idinteger
officialboolean
pull_request_urlstring

HTMLPullURL is the web URL for the pull request

staleboolean
state'APPROVED' | 'PENDING' | 'COMMENT' | 'REQUEST_CHANGES' | 'REQUEST_REVIEW'
submitted_atstring date-time
updated_atstring date-time

Example response

{
  "team": {
    "units": [
      "repo.code",
      "repo.issues",
      "repo.ext_issues",
      "repo.wiki",
      "repo.pulls",
      "repo.releases",
      "repo.projects",
      "repo.ext_wiki"
    ],
    "units_map": {
      "repo.code": "read",
      "repo.ext_issues": "none",
      "repo.ext_wiki": "none",
      "repo.issues": "write",
      "repo.projects": "none",
      "repo.pulls": "owner",
      "repo.releases": "none",
      "repo.wiki": "admin"
    }
  }
}