From 077af9aebfc618500ddf858518574c3d0dc35fcc Mon Sep 17 00:00:00 2001 From: lvsi <15239928381@163.com> Date: Sat, 2 Mar 2024 23:32:42 +0800 Subject: [PATCH] refactor: add the new msg_type refactor --- include/hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hooks/commit-msg b/include/hooks/commit-msg index d7e609e..7d49bd1 100755 --- a/include/hooks/commit-msg +++ b/include/hooks/commit-msg @@ -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