Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 307ddd3

Browse files
authored
chore: update template request field name from 'name' to 'file_name' (#231)
1 parent 3535dc4 commit 307ddd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coder-sdk/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ type Template struct {
102102
// Optional. The default branch will be used if not provided.
103103
Branch string `json:"branch"`
104104
// Optional. The template name will be used if not provided.
105-
Name string `json:"name"`
105+
FileName string `json:"file_name"`
106106
}
107107

108108
// CreateEnvironmentFromRepo sends a request to create an environment from a repository.

internal/cmd/envs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ coder envs create-from-repo github.com/cdr/m --branch envs-as-code`,
280280
createReq := &coder.Template{
281281
RepositoryURL: args[0],
282282
Branch: branch,
283-
Name: name,
283+
FileName: name,
284284
}
285285

286286
env, err := client.CreateEnvironment(ctx, coder.CreateEnvironmentRequest{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy