setNoBuild marks the response with no_build: true when no build was triggered. The frontend uses this flag to suppress the build-log section for already-running workspaces.
(result map[string]any, buildID uuid.UUID)
| 161 | // was triggered. The frontend uses this flag to suppress the |
| 162 | // build-log section for already-running workspaces. |
| 163 | func setNoBuild(result map[string]any, buildID uuid.UUID) { |
| 164 | if buildID == uuid.Nil { |
| 165 | result["no_build"] = true |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | // isTemplateAllowed checks whether a template ID is permitted by the |
| 170 | // configured allowlist. A nil function or an empty allowlist means |
no outgoing calls
no test coverage detected