Skip to content

Commit

Permalink
Update commit-msg
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 authored Nov 29, 2023
1 parent d9904a6 commit cb68ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npx prettier --write .
npm run re:format

# Define your commit message convention (e.g., starts with "feature:", "fix:", etc.)
commit_regex="^(merge-commit|feature|bugfix|chore|docs|style|refactor|test|enhancement).+"
commit_regex="^(merge-commit|feat|fix|chore|docs|style|refactor|test|enhancement).+"

if ! echo "$commit_msg" | grep -E "$commit_regex" ; then
echo "Aborting commit. Your commit message does not follow the conventional format."
Expand Down

0 comments on commit cb68ffa

Please sign in to comment.