From fcd3193fe1fe34d675cd51ed6f4fc39becb6127d Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Sun, 9 Nov 2025 12:46:46 +0100 Subject: [PATCH] Improve stale release warning feature (#528) - Use days instead of years to be aligned with the warning message, - Allow configure a threshold per release. --- update-product-data.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update-product-data.py b/update-product-data.py index 80a95676..4a377433 100644 --- a/update-product-data.py +++ b/update-product-data.py @@ -258,9 +258,11 @@ def __raise_alert_for_unmatched_releases(name: str, output: GitHubOutput, produc def __raise_alert_for_stale_releases(name: str, output: GitHubOutput, product: Product) -> None: - threshold = product.data.get("staleReleaseThresholdYears", 1) * 365 + global_threshold = product.data.get("staleReleaseThresholdDays", 365) for release in product.releases: + threshold = release.data.get("staleReleaseThresholdDays", global_threshold) + logging.debug(f"checking staleness of {name}:{release.name}") eol = release.eol()