Skip to content

Commit

Permalink
Merge pull request #832 from iyear/fix-githooks
Browse files Browse the repository at this point in the history
fix: add refactor type to githooks
  • Loading branch information
daniel-hutao authored Jul 12, 2022
2 parents fc68afb + c163ac0 commit 6734374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi


# check for a valid commit message
COMMIT_MSG=`cat $1 | egrep "^(feat|fix|doc|docs|chore|build|ci|perf|style|revert|test)(\(\w+\))?!?:\s(\S|\w)+"`
COMMIT_MSG=`cat $1 | egrep "^(feat|fix|doc|docs|chore|build|ci|perf|style|revert|test|refactor)(\(\w+\))?!?:\s(\S|\w)+"`

if [ "$COMMIT_MSG" = "" ]; then
echo -e "
Expand All @@ -19,7 +19,7 @@ if [ "$COMMIT_MSG" = "" ]; then
[optional body]
[optional footer(s)]
\033[0m
where \"type\" can be: \033[32m feat fix doc docs chore ci build perf style revert test \033[0m
where \"type\" can be: \033[32m feat fix doc docs chore ci build perf style revert test refactor \033[0m
For details, please refer to \033[34m https://www.conventionalcommits.org/en/v1.0.0/#summary \033[0m
"
exit 1
Expand Down

0 comments on commit 6734374

Please sign in to comment.