v1

latestOpenAPI 3.1.02026-07-26269227514.8 KB
pr-reviews

Trigger Devin Review

Trigger a Devin Review for a pull/merge request.

Creates a database record that will be picked up by the review worker pool. Always fetches the latest commit from the PR.

post/v3/enterprise/pr-reviews

Request body

pr_urlstring required

Full URL of the pull/merge request to review (e.g. https://github.com/owner/repo/pull/123).

Example request

{
  "pr_url": "https://github.com/owner/repo/pull/123"
}

Response

Successful Response

commit_shastring required

Commit SHA of the PR head that will be reviewed.

created_atstring date-time required

When the review was accepted.

pr_numberinteger required

Pull/merge request number.

repo_pathstring required

Normalized host-prefixed repo path (e.g. github.com/owner/repo).

status'pending' | 'running' | 'completed' | 'errored' | 'cancelled' required

Current review status. Newly accepted reviews start as pending.