Skip to content

Commit

Permalink
refactor: add the new msg_type refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
WGrape committed Mar 2, 2024
1 parent 92b1cbd commit 077af9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/hooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ echo ""
echo "检查提交信息格式 (check your commit message style)..."

commit_msg_type=$(cat $1 | awk -F: '{print$1}')
valid_commit_msg_type=("feat" "doc" "update" "fix" "init" "test" "chore") # update: 更新、优化等 | init: 指项目初始化 | ...
valid_commit_msg_type=("feat" "doc" "update" "fix" "init" "test" "chore" "refactor") # update: 更新、优化等 | init: 指项目初始化 | ...
if echo "${valid_commit_msg_type[@]}" | grep -q "${commit_msg_type}"; then
echo "> 1. 提交类型正确 (commit_msg_type ok): ${commit_msg_type}"
else
Expand Down

0 comments on commit 077af9a

Please sign in to comment.