From 88089eba119da7ff95a029793772f3e93efc557c Mon Sep 17 00:00:00 2001 From: noamd Date: Sun, 14 Apr 2024 18:38:42 +0300 Subject: [PATCH] filter our archived repositories --- internal/collectors/github/repository_collector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/collectors/github/repository_collector.go b/internal/collectors/github/repository_collector.go index 0d63c242..227c914f 100644 --- a/internal/collectors/github/repository_collector.go +++ b/internal/collectors/github/repository_collector.go @@ -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)"` } @@ -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)"` }