Skip to content

Commit

Permalink
doc: document reasoning to filter archived repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Jul 29, 2020
1 parent 87697ab commit 4aeb724
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/github/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ func (c *Client) FetchOrganziationRepositories(ctx context.Context, owner string
Repositories graphql.RepositorySearch `graphql:"search(query: $query, type: REPOSITORY, first:100, after: $repoCursor)""`
}

// archived repositories are filtered as they give error when fetching collaborators
// this bug is known with Github.
// Also see https://github.com/shurcooL/githubv4/issues/72, on proposal for better error handling
variables := map[string]interface{}{
"query": githubv4.String(fmt.Sprintf("org:%s archived:false", owner)),
"repoCursor": (*githubv4.String)(nil),
Expand Down

0 comments on commit 4aeb724

Please sign in to comment.