From 3033905f9f0a8b307f003044bf2b38770b570a6a Mon Sep 17 00:00:00 2001 From: Gabriel Silva <96894950+GabeSilvaDev@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:50:51 -0300 Subject: [PATCH] Update commit-msg.sh --- commit-msg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit-msg.sh b/commit-msg.sh index d8cc746..5aeb0af 100755 --- a/commit-msg.sh +++ b/commit-msg.sh @@ -6,7 +6,7 @@ COMMIT_MSG_FILE=$1 # Read the commit message from the file. COMMIT_MSG=$(cat "$COMMIT_MSG_FILE") -CONVENTIONAL_COMMIT_REGEX='^(feat|fix|docs|style|refactor|test|chore|build|ci|perf|revert)(\([a-zA-Z0-9_.-]+\))?(!)?:\s.*$' +CONVENTIONAL_COMMIT_REGEX='^([[:graph:][:space:]]* )?(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|wip|release|hotfix|rollback|raw|cleanup|remove|init)(\([^\)]+\))?(!)?:\s.+$' # Check if the commit message matches the regex if ! [[ $COMMIT_MSG =~ $CONVENTIONAL_COMMIT_REGEX ]]; then