Skip to content

Commit

Permalink
fix: remove returning of archived and disabled Github repos
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed Nov 17, 2020
1 parent 157ffa9 commit da2d635
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ func (g Github) getRepositories(ctx context.Context) ([]*github.Repository, erro
}
allRepos = make([]*github.Repository, 0, len(repoMap))
for _, repo := range repoMap {
if repo.GetArchived() || repo.GetDisabled() {
continue
}
allRepos = append(allRepos, repo)
}
sort.Slice(allRepos, func(i, j int) bool {
Expand Down

0 comments on commit da2d635

Please sign in to comment.