Thanks to visit codestin.com
Credit goes to github.com

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

chore: update template request field name from 'name' to 'file_name' #231

Merged
merged 1 commit into from
Jan 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion coder-sdk/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type Template struct {
// Optional. The default branch will be used if not provided.
Branch string `json:"branch"`
// Optional. The template name will be used if not provided.
Name string `json:"name"`
FileName string `json:"file_name"`
}

// CreateEnvironmentFromRepo sends a request to create an environment from a repository.
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/envs.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ coder envs create-from-repo github.com/cdr/m --branch envs-as-code`,
createReq := &coder.Template{
RepositoryURL: args[0],
Branch: branch,
Name: name,
FileName: name,
}

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