github.pull_request-complete ​
Complete pull_request workflow
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-github |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
github_pr_ref | integer | Yes | — | GitHub PR ID |
pr_number | integer | Yes | — | PR number |
pr_title | string | Yes | — | PR title |
action_type | string | Yes | — | Action type |
workflow_run_id | string | No | — | Parent DAG run ID |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
github_pr_ref | integer | No | — | GitHub PR ID |
pr_number | integer | No | — | PR number |
pr_title | string | No | — | PR title |
action_type | string | No | — | Action type |
completed_at | string | No | — | Completed timestamp |
workflow_run_id | string | No | — | Parent DAG run ID |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | 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.pull_request-complete",
"initial_data": {
"github_pr_ref": 123,
"pr_number": 123,
"pr_title": "value",
"action_type": "value"
}
}