github.label-sync ​
Sync label event for audit
Sync label event (log for audit)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-github |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
action | string | Yes | — | Label action |
github_label_ref | integer | Yes | — | GitHub label ID |
label_data | dict | Yes | — | Label data |
repository_uuid | uuid | No | — | Repository UUID |
workflow_run_id | string | No | — | Parent DAG run ID |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
action_type | string | No | — | Action type |
github_label_ref | integer | No | — | GitHub label ID |
label_name | string | No | — | Label name |
label_color | string | No | — | Label color |
repository_uuid | uuid | No | — | Repository UUID |
synced_at | string | No | — | Synced 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.label-sync",
"initial_data": {
"action": "value",
"github_label_ref": 123,
"label_data": "value"
}
}