File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,15 @@ const (
22
22
type BuildReason string
23
23
24
24
const (
25
+ // "initiator" is used when a workspace build is triggered by a user.
26
+ // Combined with the initiator id/username, it indicates which user initiated the build.
25
27
BuildReasonInitiator BuildReason = "initiator"
28
+ // "autostart" is used when a build to start a workspace is triggered by Autostart.
29
+ // The initiator id/username in this case is the workspace owner and can be ignored.
26
30
BuildReasonAutostart BuildReason = "autostart"
27
- BuildReasonAutostop BuildReason = "autostop"
31
+ // "autostop" is used when a build to stop a workspace is triggered by Autostop.
32
+ // The initiator id/username in this case is the workspace owner and can be ignored.
33
+ BuildReasonAutostop BuildReason = "autostop"
28
34
)
29
35
30
36
// WorkspaceBuild is an at-point representation of a workspace state.
You can’t perform that action at this time.
0 commit comments