Skip to content

Commit a80938b

Browse files
models_gen
1 parent 13b375d commit a80938b

File tree

2 files changed

+303
-28
lines changed

2 files changed

+303
-28
lines changed

pkg/codefresh/git-source.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ func newGitSourceAPI(codefresh *codefresh) IGitSourceAPI {
3131

3232
func (g *gitSource) List(runtimeName string) ([]model.GitSource, error) {
3333
jsonData := map[string]interface{}{
34-
"query": `{
35-
gitSources {
34+
"query": `query GitSources($runtime: String) {
35+
gitSources(runtime: $runtime) {
3636
edges {
3737
node {
3838
metadata {
@@ -55,6 +55,9 @@ func (g *gitSource) List(runtimeName string) ([]model.GitSource, error) {
5555
}
5656
}
5757
}`,
58+
"variables": map[string]interface{}{
59+
"runtime": runtimeName,
60+
},
5861
}
5962

6063
response, err := g.codefresh.requestAPI(&requestOptions{

0 commit comments

Comments
 (0)