circleci: allow dots in subject line 522/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Wed, 22 Apr 2020 11:06:20 +0000 (13:06 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Wed, 22 Apr 2020 11:06:24 +0000 (13:06 +0200)
We like to use "kamailio-5.x:" and "asterisk-16.x:" in commit message
subject lines. So relax the regex for it to allow the dots.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
.circleci/config.yml

index 2f2c412910a1c04011b13b2e6714ef3605178ca5..75813a47176228fd2bc6c91b24c1bc86994b1ee8 100644 (file)
@@ -40,7 +40,7 @@ jobs:
                fi
 
                subject="$(git show -s --format=%s $commit)"
-               if echo "$subject" | grep -q -e '^[0-9A-Za-z,+/_-]\+: ' -e '^Revert '; then
+               if echo "$subject" | grep -q -e '^[0-9A-Za-z,.+/_-]\+: ' -e '^Revert '; then
                  echo_green "Commit subject line seems ok ($subject)"
                else
                  echo_red "Commit subject line MUST start with '<package name>: ' ($subject)"