Skip to content
Proud to collaborate with Microsoft for Startups

github.pulls.review_pr ​

Submit a GitHub pull request review through an installed GitHub App connection.

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
dry_runbooleanNo—Validate and plan without mutating GitHub
github_connection_uuiduuidNo—GitHub installation connection UUID
repositorystringYes—Repository owner/name
pull_numberintegerYes—Pull request number
commit_shastringNo—Expected PR head commit SHA
review_eventstringYes—APPROVE, REQUEST_CHANGES, or COMMENT
review_bodystringYes—Audit text to submit with the review
policy_receiptjsonNo—Deterministic approval-gate receipt from the caller

Output Schema ​

FieldTypeRequiredDefaultDescription
statusstringNo—planned, reviewed, already_reviewed, or failed
repositorystringNo——
pull_numberintegerNo——
review_eventstringNo——
review_node_refstringNo——
html_urlstringNo——
appliedbooleanNo——
dry_runbooleanNo——
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.review_pr",
  "initial_data": {
    "organization_uuid": "value",
    "repository": "value",
    "pull_number": 123,
    "review_event": "value"
  }
}