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:
12
src/_copy_product_releases.py
Normal file
12
src/_copy_product_releases.py
Normal 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"))
|
||||
Reference in New Issue
Block a user