Copy releases from products frontmatter (#465)

Copy releases, without their properties, from product data (frontmatter) to release data.

This script is not intended to be declared in the frontmatter: it is for internal use only.
It executes before all other scripts, and helps the following scripts to work with releases.
This commit is contained in:
Marc Wrobel
2025-07-12 12:01:54 +02:00
parent 9f5131469c
commit 42c1189781
3 changed files with 23 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
from common import releasedata
"""Copy releases, without their properties, from product data (frontmatter) to release data.
This script is not intended to be declared in the frontmatter: it is for internal use only.
It executes before all other scripts, and helps the following scripts to work with releases.
"""
frontmatter, _ = releasedata.parse_argv(ignore_auto_config=True)
with releasedata.ProductData(frontmatter.name) as product_data:
for frontmatter_release in frontmatter.get_releases():
product_data.get_release(frontmatter_release.get("releaseCycle"))