[chef-infra] Handle versions starting with 'v' (#496)

Such as chef-infra-client.

Closes #394.
This commit is contained in:
Marc Wrobel
2025-08-15 10:44:34 +02:00
committed by GitHub
parent cc3fb54fc6
commit d1396beed8
2 changed files with 701 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ with ProductData(config.product) as product_data:
versions = git.list_tags()
for version, date_str in versions:
version = version.startswith("v") and version[1:] or version # Remove 'v' prefix if present
if version in released_versions:
date = dates.parse_date(date_str)
product_data.declare_version(version, date)