MCPcopy Index your code
hub / github.com/coder/coder / createAndBuildTemplateVersion

Function createAndBuildTemplateVersion

site/src/api/queries/templates.ts:171–179  ·  view source on GitHub ↗
(organization: string)

Source from the content-addressed store, hash-verified

169};
170
171export const createAndBuildTemplateVersion = (organization: string) => {
172 return {
173 mutationFn: async (request: CreateTemplateVersionRequest) => {
174 const newVersion = await API.createTemplateVersion(organization, request);
175 await waitBuildToBeFinished(newVersion);
176 return newVersion;
177 },
178 };
179};
180
181export const updateActiveTemplateVersion = (
182 template: Template,

Callers 1

TemplateVariablesPageFunction · 0.90

Calls 2

waitBuildToBeFinishedFunction · 0.85
createTemplateVersionMethod · 0.45

Tested by

no test coverage detected