Adapt make_branch script to new 'unmaintained/<series>' branch

With the new TC resolution the community replaces Extended Maintenance
with Unmaintained status [1].
The make_branch.sh script needs to be extended to
- do not re-create stable/<series> branch when <series>-eom tag exists
- do not re-create unmaintained/<series> branch when <series>-eol tag
  exists

[1] https://governance.openstack.org/tc/resolutions/20230724-unmaintained-branches.html

Change-Id: I55ee87cdb9ee712c334c798a1c2a7ba745e5870e
This commit is contained in:
Előd Illés 2024-01-05 14:45:39 +01:00 committed by Elod Illes
parent 285e7012e4
commit 80fa9e7a2c

View File

@ -55,9 +55,16 @@ if $(git tag | grep ${NEW_BRANCH/\//-}-eol > /dev/null); then
cleanup_and_exit
fi
# Skip branch creation in case <series>-eol tag exists
if $(git tag | grep ${NEW_BRANCH#stable/}-eol >/dev/null); then
echo "A ${NEW_BRANCH#stable/}-eol tag already exists !"
# Skip stable/<series> or unmaintained/<series> branch creation in case
# <series>-eol tag exists
if $(git tag | grep ${NEW_BRANCH//@(stable\/|unmaintained\/)}-eol >/dev/null); then
echo "A ${NEW_BRANCH//@(stable\/|unmaintained\/)}-eol tag already exists !"
cleanup_and_exit
fi
# Skip stable/<series> branch creation in case <series>-eom tag exists
if $(git tag | grep ${NEW_BRANCH#stable/}-eom >/dev/null); then
echo "A ${NEW_BRANCH#stable/}-eom tag already exists !"
cleanup_and_exit
fi