feat: add template version creator (#2991)

This commit is contained in:
Abhineet Jain
2022-07-14 20:44:33 +00:00
committed by GitHub
parent 6ef8a625d5
commit aea3b3b83e
14 changed files with 106 additions and 16 deletions
+3 -1
View File
@@ -87,7 +87,7 @@ export interface CreateTemplateRequest {
readonly min_autostart_interval_ms?: number
}
// From codersdk/templateversions.go:106:6
// From codersdk/templateversions.go:108:6
export interface CreateTemplateVersionDryRunRequest {
readonly WorkspaceName: string
readonly ParameterValues: CreateParameterRequest[]
@@ -290,6 +290,8 @@ export interface TemplateVersion {
readonly name: string
readonly job: ProvisionerJob
readonly readme: string
readonly created_by_id: string
readonly created_by_name: string
}
// From codersdk/templates.go:100:6
+2
View File
@@ -112,6 +112,8 @@ name:Template test
You can add instructions here
[Some link info](https://coder.com)`,
created_by_id: "test-creator-id",
created_by_name: "test_creator",
}
export const MockTemplate: TypesGen.Template = {