Skip to content
Proud to collaborate with Microsoft for Startups

github.pulls.list_reviews ​

Read a GitHub pull request's reviews and report whether it is approved on an exact head.

Read a GitHub pull request's reviews and decide approval the way GitHub does: latest review per author, on the exact head.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-github
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID
actorstringNo—Actor initiating the workflow
workflow_run_idstringNo—Parent workflow run id
github_connection_uuiduuidNo—GitHub installation connection UUID
repositorystringYes—Repository owner/name
pull_numberintegerYes—Pull request number
commit_shastringNo—Only reviews submitted against this exact head commit count; others are ignored
reviewer_loginstringNo—Only reviews by this GitHub login count toward the decision
verdict_markerstringNo—Name of the HTML-comment marker a COMMENT review may carry to express a verdict, as in <!-- orkestia-verdict: SAFE -->. SAFE counts as APPROVED; FIXABLE and UNSAFE count as CHANGES_REQUESTED. Defaults to orkestia-verdict

Output Schema ​

FieldTypeRequiredDefaultDescription
statusstringNo—read or failed
repositorystringNo——
pull_numberintegerNo——
commit_shastringNo——
reviewslistNo—Reviews considered, newest last: state, effective_state, verdict, commit_id, author_login, submitted_at, html_url, node_id
verdict_markerstringNo—Marker name the decision honoured
review_countintegerNo——
approvedbooleanNo—No author's latest review is CHANGES_REQUESTED and at least one is APPROVED
changes_requestedbooleanNo—Some author's latest review is CHANGES_REQUESTED
latest_statestringNo—Effective state of the most recent decision review considered, or none
deciding_reviewjsonNo—The review whose effective state produced latest_state, or null when there is no decision
warningslistNo——
failure_reasonstringNo——
failed_stepstringNo——
failed_layerstringNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "github.pulls.list_reviews",
  "initial_data": {
    "organization_uuid": "value",
    "repository": "value",
    "pull_number": 123
  }
}