We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05ed4b1 commit 32f7d32Copy full SHA for 32f7d32
1 file changed
cmd/src/repos_list.go
@@ -30,6 +30,9 @@ type repositoriesListResult struct {
30
Errors []json.RawMessage `json:"errors,omitempty"`
31
}
32
33
+// listRepositories returns the repositories from the response, any GraphQL
34
+// errors returned alongside data (should be treated as warnings), and a hard error when the query fails
35
+// without usable repository data.
36
func listRepositories(ctx context.Context, client api.Client, params reposListOptions) ([]Repository, api.GraphQlErrors, error) {
37
query := `query Repositories(
38
$first: Int,
0 commit comments