Skip to content

Commit

Permalink
Merge pull request #109 from github/skip-date-checks
Browse files Browse the repository at this point in the history
fix: Skip date testing if not configured
  • Loading branch information
zkoppert authored Apr 26, 2024
2 parents 70533c5 + f176967 commit 47877e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions evergreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,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
Expand Down

0 comments on commit 47877e2

Please sign in to comment.