Skip to content
Merged
Prev Previous commit
Next Next commit
chore: add comment to IsPrebuild parameter on codersdk.Workspaces
  • Loading branch information
ssncferreira committed Jul 14, 2025
commit 0bde2549aa8cbfd6ad8ea4640a989d1f319a8805
7 changes: 6 additions & 1 deletion codersdk/workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ type Workspace struct {
AllowRenames bool `json:"allow_renames"`
Favorite bool `json:"favorite"`
NextStartAt *time.Time `json:"next_start_at" format:"date-time"`
IsPrebuild bool `json:"is_prebuild"`
// IsPrebuild indicates whether the workspace is a prebuilt workspace.
// Prebuilt workspaces are owned by the prebuilds system user and have specific behavior,
// such as being managed differently from regular workspaces.
// Once a prebuilt workspace is claimed by a user, it transitions to a regular workspace,
// and IsPrebuild returns false.
IsPrebuild bool `json:"is_prebuild"`
}

func (w Workspace) FullName() string {
Expand Down
Loading