[chef-infra] Handle versions starting with 'v' (#496)
Such as chef-infra-client. Closes #394.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user