Skip to content

Commit

Permalink
Merge pull request #101 from github/debug-skips
Browse files Browse the repository at this point in the history
chore: add skip debug prints
  • Loading branch information
zkoppert committed Apr 23, 2024
2 parents 890f40c + 0c3eeab commit f22bf95
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion evergreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,26 +64,36 @@ def main(): # pragma: no cover

# Check all the things to see if repo is eligble for a pr/issue
if repo.full_name in exempt_repositories_list:
print("Skipping " + repo.full_name + " (exempted)")
continue
if repo.archived:
print("Skipping " + repo.full_name + " (archived)")
continue
if repo.visibility.lower() not in filter_visibility:
print("Skipping " + repo.full_name + " (visibility-filtered)")
continue
try:
if repo.file_contents(".github/dependabot.yml").size > 0:
print(
"Skipping " + repo.full_name + " (dependabot file already exists)"
)
continue
except github3.exceptions.NotFoundError:
pass
try:
if repo.file_contents(".github/dependabot.yaml").size > 0:
print(
"Skipping " + repo.full_name + " (dependabot file already exists)"
)
continue
except github3.exceptions.NotFoundError:
pass

if is_repo_created_date_before(repo.created_at, created_after_date):
print("Skipping " + repo.full_name + " (created after filter)")
continue

print("Checking " + repo.full_name)
print("Checking " + repo.full_name + "for compatible package managers")
# Try to detect package managers and build a dependabot file
dependabot_file = build_dependabot_file(
repo, group_dependencies, exempt_ecosystems
Expand Down

0 comments on commit f22bf95

Please sign in to comment.