Skip to content

Commit

Permalink
added filter to ignore archived repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
htrgouvea committed Apr 1, 2024
1 parent 00fec17 commit 319c77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/search_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def repositories(org, token):
)

if response.status_code == 200:
repos = [f'{org}/{repo["name"]}' for repo in response.json()]
repos = [f'{org}/{repo["name"]}' for repo in response.json() if not repo["archived"]]
return repos

return False
Expand Down

0 comments on commit 319c77d

Please sign in to comment.