github.pulls.create_exact_pr ​
Create a GitHub pull request only after exact published-head verification.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-github |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
actor | string | No | — | — |
workflow_run_id | string | No | — | — |
dry_run | boolean | No | — | — |
github_connection_uuid | uuid | No | — | — |
repository | string | Yes | — | — |
head_ref | string | Yes | — | — |
base_ref | string | Yes | — | — |
expected_head_sha | string | Yes | — | — |
title | string | Yes | — | — |
body | string | No | — | — |
draft | boolean | No | — | — |
maintainer_can_modify | boolean | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
status | string | No | — | — |
repository | string | No | — | — |
pull_number | integer | No | — | — |
html_url | string | No | — | — |
head_ref | string | No | — | — |
head_sha | string | No | — | — |
base_ref | string | No | — | — |
base_sha | string | No | — | — |
draft | boolean | No | — | — |
applied | boolean | No | — | — |
dry_run | boolean | No | — | — |
warnings | list | No | — | — |
failure_reason | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
failed_at_state | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
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"
}
}