Merge "Allow <series>-last tag to be released for Unmaintained release"

This commit is contained in:
Zuul 2024-02-19 06:57:00 +00:00 committed by Gerrit Code Review
commit 955fa38d7c
2 changed files with 6 additions and 2 deletions

View File

@ -1197,9 +1197,9 @@ def validate_version_numbers(deliv, context):
context.error(
"LAST tag {} should match branch name (e.g {}-last)".format(
release.version, deliv.series))
if not deliv.series_info.is_em:
if not (deliv.series_info.is_em or deliv.series_info.is_eom):
context.error(
"LAST tag {} aren't allowed on a series ({}) that are not EM".format(
"LAST tag {} aren't allowed on a series ({}) that are not EM or Unmaintained".format(
release.version, deliv.series))
continue

View File

@ -55,6 +55,10 @@ class Series(object):
def is_em(self):
return self.status == 'extended maintenance'
@property
def is_eom(self):
return self.status == 'unmaintained'
@property
def is_maintained(self):
return self.status == 'maintained' or self.status == 'development'