mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add support for template version messages in api and cli (#8336)
This commit is contained in:
@@ -200,6 +200,7 @@ export interface CreateTemplateVersionDryRunRequest {
|
||||
// From codersdk/organizations.go
|
||||
export interface CreateTemplateVersionRequest {
|
||||
readonly name?: string
|
||||
readonly message?: string
|
||||
readonly template_id?: string
|
||||
readonly storage_method: ProvisionerStorageMethod
|
||||
readonly file_id?: string
|
||||
@@ -915,6 +916,7 @@ export interface TemplateVersion {
|
||||
readonly created_at: string
|
||||
readonly updated_at: string
|
||||
readonly name: string
|
||||
readonly message: string
|
||||
readonly job: ProvisionerJob
|
||||
readonly readme: string
|
||||
readonly created_by: User
|
||||
|
||||
@@ -352,6 +352,7 @@ export const MockTemplateVersion: TypesGen.TemplateVersion = {
|
||||
template_id: "test-template",
|
||||
job: MockProvisionerJob,
|
||||
name: "test-version",
|
||||
message: "first version",
|
||||
readme: `---
|
||||
name:Template test
|
||||
---
|
||||
@@ -369,6 +370,7 @@ export const MockTemplateVersion2: TypesGen.TemplateVersion = {
|
||||
template_id: "test-template",
|
||||
job: MockProvisionerJob,
|
||||
name: "test-version-2",
|
||||
message: "first version",
|
||||
readme: `---
|
||||
name:Template test 2
|
||||
---
|
||||
@@ -386,6 +388,7 @@ export const MockTemplateVersion3: TypesGen.TemplateVersion = {
|
||||
template_id: "test-template",
|
||||
job: MockProvisionerJob,
|
||||
name: "test-version-3",
|
||||
message: "first version",
|
||||
readme: "README",
|
||||
created_by: MockUser,
|
||||
warnings: ["UNSUPPORTED_WORKSPACES"],
|
||||
|
||||
Reference in New Issue
Block a user