Skip to content

Commit

Permalink
Merge pull request #182 from creativecommons/normalize-skip-archived
Browse files Browse the repository at this point in the history
Skip archived repositories
  • Loading branch information
TimidRobot authored Aug 10, 2023
2 parents e75457b + 6d64dc1 commit 032ffd5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions normalize_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ def get_select_repos(args):
LOG.change_indent(-1)
repos = list(get_cc_repos(github))
LOG.change_indent(+1)
# Skip archived repos
repos_selected = []
for repo in repos:
if not repo.archived:
repos_selected.append(repo)
repos = repos_selected
# Skip non-selected repos
if args.repos:
repos_selected = []
for repo in repos:
Expand Down

0 comments on commit 032ffd5

Please sign in to comment.