From b247da249ab4d3fc973617ffec4bbbbd406a5baf Mon Sep 17 00:00:00 2001 From: Krishna Acondy Date: Fri, 28 May 2021 08:52:18 +0100 Subject: [PATCH] chore(git-hooks): allow numbers in commit message --- .git-hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.git-hooks/commit-msg b/.git-hooks/commit-msg index e0297de..d12ec2f 100755 --- a/.git-hooks/commit-msg +++ b/.git-hooks/commit-msg @@ -6,7 +6,7 @@ GREEN="\033[1;32m" # temporary file which holds the message). commit_message=$(cat "$1") -if (echo "$commit_message" | grep -Eq "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z \-]+\))?!?: .+$") then +if (echo "$commit_message" | grep -Eq "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z0-9 \-]+\))?!?: .+$") then echo "${GREEN} ✔ Commit message meets Conventional Commit standards" exit 0 fi