Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit307ddd3

Browse files
authored
chore: update template request field name from 'name' to 'file_name' (#231)
1 parent3535dc4 commit307ddd3

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
Branchstring`json:"branch"`
104104
// Optional. The template name will be used if not provided.
105-
Namestring`json:"name"`
105+
FileNamestring`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)

[8]ページ先頭

©2009-2025 Movatter.jp