Skip to content

Commit

Permalink
Merge commit '1ea37b28c96053642c6ffd1b0e6809487537c2c4' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
alocane committed Nov 12, 2020
2 parents f1c785f + 1ea37b2 commit a5f6bc9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ check_version() {
fi
}

check_hotfix() {
[[ -n $isRC ]] || whine "non rc version not allowed"
[[ $patchNumber != 0 ]] || whine "zero patch version not allowed"
if [[ -z $isSnapshot ]] ; then
check_tag
fi
}

case "$branch" in
"master" | "main")
check_master
Expand All @@ -173,6 +181,9 @@ check_version() {
"release/"*)
check_release
;;
"hotfix/"*)
check_hotfix
;;
*)
whine "unsupported branch $branch"
esac
Expand Down

0 comments on commit a5f6bc9

Please sign in to comment.