Skip to content

Commit

Permalink
filter our archived repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
noamd-legit committed Apr 14, 2024
1 parent db0b2ab commit 88089eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/collectors/github/repository_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type totalCountRepoQuery struct {
Organization struct {
Repositories struct {
TotalCount githubv4.Int
} `graphql:"repositories(first: 1)"`
} `graphql:"repositories(first: 1, isArchived: false)"`
} `graphql:"organization(login: $login)"`
}

Expand Down Expand Up @@ -180,7 +180,7 @@ type repoQuery struct {
Repositories struct {
PageInfo ghcollected.GitHubQLPageInfo
Nodes []ghcollected.GitHubQLRepository
} `graphql:"repositories(first: 50, after: $repositoryCursor)"`
} `graphql:"repositories(first: 50, after: $repositoryCursor, isArchived: false)"`
} `graphql:"organization(login: $login)"`
}

Expand Down

0 comments on commit 88089eb

Please sign in to comment.