Start a workflow from the switcher
This commit is contained in:
+9
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user