propose-library-branches command with release_id
With the new release identification / naming schema [1] (like: 2023.1 Antelope) new stable branch naming was introduced (like: stable/2023.1). This was not handled in the propose-library-branches command as it still used the release name. This patch fixes this by reading the 'release-id' field from series_status.yaml and if present then uses it as stable/<release-id> for the branch creation. [1] https://governance.openstack.org/tc/reference/release-naming.html Change-Id: Ie87862669fb965729e23a9374c34b1ba2e71b445
This commit is contained in:
parent
95f1dc4ab0
commit
3f96e774ce
@ -21,6 +21,7 @@ import tempfile
|
|||||||
|
|
||||||
import openstack_releases
|
import openstack_releases
|
||||||
from openstack_releases import defaults
|
from openstack_releases import defaults
|
||||||
|
from openstack_releases import series_status
|
||||||
from openstack_releases import yamlutils
|
from openstack_releases import yamlutils
|
||||||
|
|
||||||
|
|
||||||
@ -103,7 +104,12 @@ def main():
|
|||||||
args.series, '*.yaml')
|
args.series, '*.yaml')
|
||||||
verbose('Scanning {}'.format(pattern))
|
verbose('Scanning {}'.format(pattern))
|
||||||
deliverable_files = sorted(glob.glob(pattern))
|
deliverable_files = sorted(glob.glob(pattern))
|
||||||
new_branch = 'stable/' + args.series
|
|
||||||
|
series_status_data = series_status.SeriesStatus.default()
|
||||||
|
release_id = series_status_data[args.series].release_id
|
||||||
|
if release_id is None:
|
||||||
|
release_id = args.series
|
||||||
|
new_branch = 'stable/' + str(release_id)
|
||||||
|
|
||||||
for filename in deliverable_files:
|
for filename in deliverable_files:
|
||||||
deliverable_name = os.path.basename(filename)[:-5]
|
deliverable_name = os.path.basename(filename)[:-5]
|
||||||
|
Loading…
Reference in New Issue
Block a user