Skip to content

Commit 2fa9bd0

Browse files
.
1 parent 1c8bcdc commit 2fa9bd0

File tree

3 files changed

+149
-8
lines changed

3 files changed

+149
-8
lines changed

pkg/codefresh/argo_runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func (r *argoRuntime) Create(ctx context.Context, opts *model.RuntimeInstallatio
5757
"query": `
5858
mutation CreateRuntime($installationArgs: RuntimeInstallationArgs!) {
5959
runtimeNew(installationArgs: $installationArgs) {
60-
name
6160
newAccessToken
61+
name
6262
}
6363
}
6464
`,

pkg/codefresh/codefresh.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ func (c *codefresh) graphqlAPI(ctx context.Context, body map[string]interface{},
167167
return fmt.Errorf("failed to read from response body: %w", err)
168168
}
169169

170-
return json.Unmarshal(data, res)
170+
err = json.Unmarshal(data, res)
171+
172+
return err
171173
}
172174

173175
func buildQSFromMap(qs map[string]string) string {

pkg/codefresh/model/models_gen.go

Lines changed: 145 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)