Skip to content
Proud to collaborate with Microsoft for Startups

github.push-sync-branch ​

Sync branch record to DB

Sync branch to DB (create/update/delete)

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-github
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
repository_uuiduuidYes—Repository UUID
organization_uuidstringNo—Organization UUID (public)
refstringYes—Full ref (refs/heads/main)
branch_namestringYes—Branch name
head_shastringNo—HEAD commit SHA
head_commitdictNo—Head commit details
is_deletedbooleanYes—Whether branch was deleted
is_createdbooleanYes—Whether branch was created
workflow_run_idstringNo—Parent DAG run ID

Output Schema ​

FieldTypeRequiredDefaultDescription
branch_uuiduuidNo——
action_performedstringNo——
workflow_run_idstringNo—Parent DAG run ID
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
executingNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecuteexecuting—
executingcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "github.push-sync-branch",
  "initial_data": {
    "repository_uuid": "value",
    "ref": "value",
    "branch_name": "value",
    "is_deleted": true
  }
}