From 30a394824ad53895f0b7ce2fbcf42ce95bab2141 Mon Sep 17 00:00:00 2001 From: Jacob Pleiness Date: Mon, 27 Mar 2023 17:21:31 -0400 Subject: [PATCH] Fix GraphQL query to reflect changes in 5.0 --- internal/validate/install/install.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/validate/install/install.go b/internal/validate/install/install.go index d776400a54..d9154b1d64 100644 --- a/internal/validate/install/install.go +++ b/internal/validate/install/install.go @@ -147,9 +147,10 @@ func repoCloneTimeout(ctx context.Context, client api.Client, repo string, srv E func listClonedRepos(ctx context.Context, client api.Client, names []string) ([]string, error) { q := clientQuery{ opName: "ListRepos", - query: `query ListRepos($names: [String!]) { + query: `query ListRepos($names: [String!], $first: Int) { repositories( names: $names + first: $first ) { nodes { name @@ -161,6 +162,7 @@ func listClonedRepos(ctx context.Context, client api.Client, names []string) ([] }`, variables: jsonVars{ "names": names, + "first": 5, }, }