Skip to content
Proud to collaborate with Microsoft for Startups

github.labels.create ​

Create a GitHub repository label; idempotent — an already-existing label is treated as success.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-github
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID
actorstringNo—Actor initiating the workflow
workflow_run_uuiduuidNo—Parent workflow run UUID
dry_runbooleanNo—Validate and plan without mutating GitHub
github_connection_uuiduuidNo—GitHub installation connection UUID
ownerstringYes—Repository owner login
repostringYes—Repository name
namestringYes—Label name
colorstringYes—6-hex-digit label color, no leading #
descriptionstringNo—Label description

Output Schema ​

FieldTypeRequiredDefaultDescription
statusstringNo—planned, created, or already_exists
ownerstringNo——
repostringNo——
namestringNo——
colorstringNo——
appliedbooleanNo——
already_existedbooleanNo——
dry_runbooleanNo——
warningslistNo——
failure_reasonstringNo——
failed_stepstringNo——
failed_layerstringNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——

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.labels.create",
  "initial_data": {
    "organization_uuid": "value",
    "owner": "value",
    "repo": "value",
    "name": "value"
  }
}