CI: fix backport validator for new branch naming
validate-backport job started to fail as only old stable branch naming is accepted. This patch extends the script to allow numbers and dot as well in the branch names (like stable/2023.1). Change-Id: Icbdcd5d124717e195d55d9e42530611ed812fadd (cherry picked from commitfe125da63b
) (cherry picked from commit09f85a8a92
) (cherry picked from commitabd9a34a60
)
This commit is contained in:
parent
db8c7a6d8c
commit
acb31f01b1
|
@ -23,7 +23,7 @@ hashes=$(git show --format='%b' --quiet $commit_hash | sed -nr 's/^.cherry picke
|
|||
checked=0
|
||||
branches+=""
|
||||
for hash in $hashes; do
|
||||
branch=$(git branch -a --contains "$hash" 2>/dev/null| grep -oE '(master|stable/[a-z]+)')
|
||||
branch=$(git branch -a --contains "$hash" 2>/dev/null| grep -oE '(master|stable/[a-z0-9.]+)')
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Cherry pick hash $hash not on any master or stable branches"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue