Skip to content
Proud to collaborate with Microsoft for Startups

github.repository-sync ​

Sync repository to DB

Sync repository to DB (create/update/delete/archive)

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-github
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
action_typestringYes—Sync type: create, update, delete, archive, unarchive
github_repo_refintegerYes—GitHub repository ID
repo_datadictYes—Repository data from webhook
installation_uuiduuidYes—Installation UUID
organization_uuidstringNo—Organization UUID (public)
workflow_run_idstringNo—Parent DAG run ID

Output Schema ​

FieldTypeRequiredDefaultDescription
action_typestringNo—Sync type
github_repo_refintegerNo—GitHub repository ID
repository_uuidstringNo—Repository UUID
action_performedstringNo—Action performed
organization_uuidstringNo—Organization UUID (public)
synced_atstringNo—Sync timestamp
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—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "github.repository-sync",
  "initial_data": {
    "action_type": "value",
    "github_repo_ref": 123,
    "repo_data": "value",
    "installation_uuid": "value"
  }
}