Skip to content

Commit

Permalink
feat/checkcommitmsg improve pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
hminaee-tc committed Jul 30, 2024
1 parent e2e4f0e commit 62f92f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/check-commit-msg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ check_branch_name
COMMIT_MSG_FILE=$1
# Regular expression for the required commit message format
PATTERN="^(feat|fix|build|breaking|chore|ci|docs|perf|refactor|revert|test)\/[a-zA-Z0-9-]+)(:)? *.+$"
PATTERN="^(feat|fix|build|breaking|chore|ci|docs|perf|refactor|revert|test)\/[a-zA-Z0-9-]+)?(:)? *.+$"
# Read the commit message
COMMIT_MSG=$(cat "$COMMIT_MSG_FILE")
Expand Down

0 comments on commit 62f92f6

Please sign in to comment.