Skip to content

Commit 0bde254

Browse files
committed
chore: add comment to IsPrebuild parameter on codersdk.Workspaces
1 parent 450b3e1 commit 0bde254

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

codersdk/workspaces.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ type Workspace struct {
6666
AllowRenames bool `json:"allow_renames"`
6767
Favorite bool `json:"favorite"`
6868
NextStartAt *time.Time `json:"next_start_at" format:"date-time"`
69-
IsPrebuild bool `json:"is_prebuild"`
69+
// IsPrebuild indicates whether the workspace is a prebuilt workspace.
70+
// Prebuilt workspaces are owned by the prebuilds system user and have specific behavior,
71+
// such as being managed differently from regular workspaces.
72+
// Once a prebuilt workspace is claimed by a user, it transitions to a regular workspace,
73+
// and IsPrebuild returns false.
74+
IsPrebuild bool `json:"is_prebuild"`
7075
}
7176

7277
func (w Workspace) FullName() string {

0 commit comments

Comments
 (0)