From 8a9905187557d4f0844a354c8b1eaafe7a7cde5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C5=91d=20Ill=C3=A9s?= Date: Thu, 4 Jan 2024 14:01:51 +0100 Subject: [PATCH] Add EOM tag option to new-release command With the new TC resolution the community replaces Extended Maintenance with Unmaintained status [1]. This patch introduces the new -eom tag option for the new-release command. The tag applies at the tip of the given stable/ branch and the new unmaintained/ branch can be cut from that tag. [1] https://governance.openstack.org/tc/resolutions/20230724-unmaintained-branches.html Change-Id: Ie67da6f4857f0d438733799bf40f8ece66f67d32 --- openstack_releases/cmds/new_release.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openstack_releases/cmds/new_release.py b/openstack_releases/cmds/new_release.py index aca0606da4..08507a5e3b 100644 --- a/openstack_releases/cmds/new_release.py +++ b/openstack_releases/cmds/new_release.py @@ -198,7 +198,7 @@ def main(): parser.add_argument( 'release_type', choices=('bugfix', 'feature', 'major', 'milestone', 'rc', - 'procedural', 'eol', 'em', 'releasefix'), + 'procedural', 'eol', 'eom', 'em', 'releasefix'), help='the type of release to generate', ) parser.add_argument( @@ -248,6 +248,7 @@ def main(): is_procedural = args.release_type in 'procedural' is_retagging = is_procedural or args.release_type == 'releasefix' is_eol = args.release_type == 'eol' + is_eom = args.release_type == 'eom' is_em = args.release_type == 'em' force_tag = args.force @@ -400,7 +401,7 @@ def main(): LOG.info('using release from same series as diff-start: %r', diff_start) - elif is_eol or is_em: + elif is_eol or is_eom or is_em: last_version_hashes = { p['repo']: p['hash'] for p in last_release['projects'] @@ -487,7 +488,7 @@ def main(): } projects.append(new_project) - elif is_eol or is_em: + elif is_eol or is_eom or is_em: changes += 1 LOG.info('tagging %s %s at %s', repo,