Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add refactor type to githooks #832

Merged
merged 1 commit into from
Jul 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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