Reviews

Get a review

GET /v1/reviews/{id}
Permission
read:reviews
Tokens
API key, CLI user token, Session token

Read a code review with its reviewers and every comment they returned, including the ones held back for anchoring outside the reviewed range.

Path parameters

idstringrequired
{
"base_sha": str,
"blocking": int,
"budget": int,
"created_at": str,
"error": str,
"event": str,
"finalized_at": str,
"github_review_id": int,
"head_sha": str,
"id": str,
"non_blocking": int,
"status": str,
}

Response

base_shastringrequired
blockingintegerrequired

Blocking comments posted to GitHub.

budgetintegerrequired

The reviewer sessions' spend budgets together, in millicents.

commentsarray<ReviewComment>required
costCostrequired

What the reviewer sessions cost together.

created_atstring, date-timerequired
errorstring
eventenum

The GitHub review event the platform submitted, from the config's output.on_pass or output.on_fail; null until posted.

one ofCOMMENTAPPROVEREQUEST_CHANGES
finalized_atstring, date-time
github_review_idinteger

The GitHub review id once posted.

head_shastringrequired

The commit the review is anchored at.

idstringrequired
non_blockingintegerrequired

Comments posted to GitHub that do not block.

pull_requestPullRequestrequired

The pull request as it was when the review ran. Null for a review Ellipsis ran before it kept the pull request.

repositoryGithubRepositorySnippetrequired

A GitHub repository, named by its owner and name.

reviewersarray<ReviewReviewer>required
statusenumrequired

running: reviewers are working. posted: one GitHub review was posted. empty: the review passed silently, so nothing was posted. failed: no reviewer finished or GitHub refused the review.

one ofrunningpostingpostedemptyfailed
tokensTokensrequired

Tokens the reviewer sessions used together.

On this page

No Headings
Schedule a demo