POST /reviews

Run a code review on demand.

MethodPath
POST/v1/reviews

Reviews an open pull request. Which pipeline runs is not a parameter: it resolves from the repository's files exactly as it does for a push, so an on-demand review never disagrees with the automatic one. A review is one pipeline run over one commit range, with one agent session per stage: `review.id` is the run id, and `stages[].session_id` is where a client streams (/sessions/{id}/stream on a stage session), since the review itself is a pipeline rather than one process.

curl -X POST "https://api.ellipsis.dev/v1/reviews" \
  -H "Authorization: Bearer $ELLIPSIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "owner": "...",
  "pull_request_number": 0,
  "repo": "..."
}'

Request

Example request body
{
"owner": "string",
"post": true,
"pull_request_number": 0,
"repo": "string",
}

Body parameters

ownerstringrequired

The repository owner's login.

postdefault trueboolean

Whether the review is posted to GitHub. Setting this false keeps the review API-only; it cannot force posting where posting is otherwise disabled.

pull_request_numberintegerrequired

The pull request to review.

repostringrequired

The repository name, without the owner.

scopeReviewScope

What range to review. Defaults to an incremental review of everything since the last review.

Response

Example response · 201
{
"budget_millicents": 0,
"completed_at": "string",
"cost_millicents": 0,
"created_at": "string",
"description_error": "string",
"description_outcome": "string",
"findings": [],
"id": "string",
"post": true,
"post_error": "string",
"posted_review_id": 0,
"review_body": "string",
"reviewed_commits": [],
"skip_reason": "string",
"stages": [],
"status": "string",
"trigger": "string"
}

On this page

No Headings
Schedule a demo