Skip to content

Commit 8123993

Browse files
change to suggestIscRepo (#433)
1 parent d4fafc2 commit 8123993

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/codefresh/argo_runtime.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ type (
5757
}
5858

5959

60-
graphQlSetIscRepoResponse struct {
60+
graphQlSuggestIscRepoResponse struct {
6161
Data struct {
62-
SetIscRepo string
62+
SuggestIscRepo string
6363
}
6464
Errors []graphqlError
6565
}
@@ -249,16 +249,16 @@ func (r *argoRuntime) Delete(ctx context.Context, runtimeName string) (int, erro
249249
func (r *argoRuntime) SetSharedConfigRepo(ctx context.Context, suggestedSharedConfigRepo string) (string, error) {
250250
jsonData := map[string]interface{}{
251251
"query": `
252-
mutation setIscRepo($suggestedSharedConfigRepo: String!) {
253-
setIscRepo(suggestedSharedConfigRepo: $suggestedSharedConfigRepo)
252+
mutation suggestIscRepo($suggestedSharedConfigRepo: String!) {
253+
suggestIscRepo(suggestedSharedConfigRepo: $suggestedSharedConfigRepo)
254254
}
255255
`,
256256
"variables": map[string]interface{}{
257257
"suggestedSharedConfigRepo": suggestedSharedConfigRepo,
258258
},
259259
}
260260

261-
res := &graphQlSetIscRepoResponse{}
261+
res := &graphQlSuggestIscRepoResponse{}
262262
err := r.codefresh.graphqlAPI(ctx, jsonData, res)
263263

264264
if err != nil {
@@ -269,5 +269,5 @@ func (r *argoRuntime) SetSharedConfigRepo(ctx context.Context, suggestedSharedCo
269269
return "nil", graphqlErrorResponse{errors: res.Errors}
270270
}
271271

272-
return res.Data.SetIscRepo, nil
272+
return res.Data.SuggestIscRepo, nil
273273
}

0 commit comments

Comments
 (0)