Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rephrase the still supported calculation to make it clearer
  • Loading branch information
henrymercer committed May 31, 2023
commit 26f16a5e63c7bebdcf17b2a6d1c7fc1861a0c611
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def main():
end_of_life_date = datetime.date.fromisoformat(release_data["end"])
# The GHES version is not actually end of life until the end of the day specified by
# `end_of_life_date`. Wait an extra week to be safe.
if end_of_life_date > datetime.date.today() - datetime.timedelta(weeks=1):
is_end_of_life = datetime.date.today() > end_of_life_date + datetime.timedelta(weeks=1)
if not is_end_of_life:
oldest_supported_release = release_version

api_compatibility_data = {
Expand Down