From eb4bfb14f8a6fecd56959a0493d1e0643f97de91 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Fri, 26 Apr 2024 08:44:30 -0700 Subject: [PATCH] fix: Skip date testing if unconfigured Signed-off-by: Zack Koppert --- evergreen.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/evergreen.py b/evergreen.py index f0859eb..2af85bd 100644 --- a/evergreen.py +++ b/evergreen.py @@ -89,11 +89,13 @@ def main(): # pragma: no cover except github3.exceptions.NotFoundError: pass - if is_repo_created_date_before(repo.created_at, created_after_date): + if created_after_date and 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 + "for compatible package managers") + 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