Skip to content

Commit c2b0721

Browse files
Merge pull request #26 from codefresh-io/CR-5686
CR-5686
2 parents 2cdf428 + 81758d5 commit c2b0721

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.30.0
1+
v0.30.1

pkg/codefresh/argo_runtime.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ func newArgoRuntimeAPI(codefresh *codefresh) IArgoRuntimeAPI {
3636
}
3737

3838
func (r *argoRuntime) Create(runtimeName string) (*model.RuntimeCreationResponse, error) {
39-
interpolatedMutation := fmt.Sprintf(`mutation {
40-
runtime(name: "%s") {
41-
id
42-
newAccessToken
43-
}
44-
}
45-
`, runtimeName)
46-
4739
jsonData := map[string]interface{}{
48-
"query": interpolatedMutation,
40+
"query": `mutation CreateRuntime($name: String!) {
41+
runtime(name: $name) {
42+
name
43+
newAccessToken
44+
}
45+
}`,
46+
"variables": map[string]string{
47+
"name": runtimeName,
48+
},
4949
}
5050

5151
response, err := r.codefresh.requestAPI(&requestOptions{

pkg/codefresh/model/models_gen.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)