From 0c3eeab7689e6da5a64b79517a3dbcbc11d2746c Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Tue, 23 Apr 2024 15:38:16 -0700 Subject: [PATCH] chore: add skip debug prints to enhance debug experience when nothing prints for minutes on end. Signed-off-by: Zack Koppert --- evergreen.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/evergreen.py b/evergreen.py index 6719c59..f0859eb 100644 --- a/evergreen.py +++ b/evergreen.py @@ -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