Skip to content

Commit c643fce

Browse files
Skip archived repos from the repositories database (#528)
1 parent bece4b3 commit c643fce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gfi/populate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def get_repository_info(owner, name):
7979
# get the repository; if the repo is not found, log a warning
8080
try:
8181
repository = client.repository(owner, name)
82+
# Don't find issues inside archived repos.
83+
if repository.archived:
84+
return None
8285

8386
good_first_issues = set(
8487
itertools.chain.from_iterable(

0 commit comments

Comments
 (0)