Skip to content

Commit

Permalink
Update .hooks/commit-msg
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Lais <[email protected]>
  • Loading branch information
raghunathd8 and peanball authored Jul 11, 2023
1 parent afc67fa commit f1b2b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .hooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
first_line=$(head -n1 "$1")
echo "commit message: $first_line"

conv_commit_msg="^(fix|feat|build|chore|ci|docs|style|refactor|perf|test)(\(.{1,50}\))?: (.{1,100})\$"
conv_commit_msg="^(fix|feat|dep|ci|doc|refactor|test)(\(.{1,50}\))?: (.{1,100})\$"
flag=0
if ! [[ "$first_line" =~ (${conv_commit_msg}) ]]; then
flag=1
Expand Down

0 comments on commit f1b2b2a

Please sign in to comment.