Skip to content

Commit 65b9840

Browse files
committed
add comment
1 parent 05ed4b1 commit 65b9840

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/src/repos_list.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ type repositoriesListResult struct {
3030
Errors []json.RawMessage `json:"errors,omitempty"`
3131
}
3232

33+
// listRepositories returns the repositories from the response, any GraphQL
34+
// errors returned alongside data (should be treated as warnings), and
35+
// a hard error when the query fails without usable repository data.
3336
func listRepositories(ctx context.Context, client api.Client, params reposListOptions) ([]Repository, api.GraphQlErrors, error) {
3437
query := `query Repositories(
3538
$first: Int,

0 commit comments

Comments
 (0)