Skip to content

Commit c0d9fd1

Browse files
committed
add more build reasons but better this time
1 parent 779b057 commit c0d9fd1

5 files changed

Lines changed: 25 additions & 7 deletions

File tree

‎coderd/apidoc/docs.go‎

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json‎

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎codersdk/workspacebuilds.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ const (
6262
// BuildReasonTaskAutoPause "task_auto_pause" is used when a build to stop
6363
// a task workspace is triggered by the lifecycle executor.
6464
BuildReasonTaskAutoPause BuildReason = "task_auto_pause"
65+
// BuildReasonTaskManualPause "task_manual_pause" is used when a build to
66+
// stop a task workspace is triggered by a user.
67+
BuildReasonTaskManualPause BuildReason = "task_manual_pause"
68+
// BuildReasonTaskResume "task_resume" is used when a build to
69+
// start a task workspace is triggered by a user.
70+
BuildReasonTaskResume BuildReason = "task_resume"
6571
)
6672

6773
// WorkspaceBuild is an at-point representation of a workspace state.

‎docs/reference/api/schemas.md‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎site/src/api/typesGenerated.ts‎

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)