Start a workflow from the switcher

This commit is contained in:
Ian Gulliver
2026-10-16 11:00:09 -07:00
parent db58d76837
commit eb0c80a645
12 changed files with 383 additions and 223 deletions
+9 -1
View File
@@ -194,7 +194,9 @@ paths:
"404": { $ref: "#/components/responses/Error" }
post:
operationId: createTask
description: Creates the task's branch and worktree from the project's default branch.
description: >
Creates the task's branch and worktree from the project's default branch, or with workflow, starts a run of
that workflow from it.
requestBody:
required: true
content:
@@ -1048,6 +1050,12 @@ components:
required: [title]
properties:
title: { type: string }
workflow:
type: string
description: >
The name of a saved workflow to run instead of creating one task with no agent: each stage with no after
stages becomes its own task, titled "<title>: <stage>", with the title as the run's brief. The response is
the first of those tasks.
WorkflowSummary:
type: object