Skip to content
Proud to collaborate with Microsoft for Startups

gitlab.connection-sync ​

Sync GitLab projects and branches for a connection

Sync all projects and branches for a GitLab connection to the local database.

Triggered by POST /api/gitlab/connections/<uuid>/sync. Heavy work runs in the SYNCING step (auto_advance_async=True) so the API returns immediately and the Kafka consumer runs the sync.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-gitlab
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes——
organization_uuiduuidYes——

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes——
organization_uuiduuidYes——
projects_syncedintegerNo——
sync_successbooleanNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
preparingYesNo—syncValidate connection
syncingNoNo—completeSync projects and branches from GitLab API
completedNoYesYes—Sync complete
failedNoYesNo—Sync failed

State Diagram ​

Transitions ​

FromActionToDescription
preparingsyncsyncing—
syncingcompletecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "gitlab.connection-sync",
  "initial_data": {
    "connection_uuid": "value",
    "organization_uuid": "value"
  }
}