Skip to content
Proud to collaborate with Microsoft for Startups

github.pulls.create_exact_pr ​

Create a GitHub pull request only after exact published-head verification.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-github
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
actorstringNo——
workflow_run_idstringNo——
dry_runbooleanNo——
github_connection_uuiduuidNo——
repositorystringYes——
head_refstringYes——
base_refstringYes——
expected_head_shastringYes——
titlestringYes——
bodystringNo——
draftbooleanNo——
maintainer_can_modifybooleanNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
statusstringNo——
repositorystringNo——
pull_numberintegerNo——
html_urlstringNo——
head_refstringNo——
head_shastringNo——
base_refstringNo——
base_shastringNo——
draftbooleanNo——
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.create_exact_pr",
  "initial_data": {
    "organization_uuid": "value",
    "repository": "value",
    "head_ref": "value",
    "base_ref": "value"
  }
}