We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaf1479 commit cbb46e7Copy full SHA for cbb46e7
1 file changed
ci/git-hooks/commit-msg
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
# 获取提交信息
3
commit_msg_file=$(git rev-parse --git-dir)/COMMIT_EDITMSG
4
-commit_msg=$(cat ${commit_msg_file})
+commit_msg=$(head -n 1 ${commit_msg_file})
5
# 使用正则匹配 Angular 提交日志格式
6
regex="^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert|wip|workflow|release)(\(.+\))?: .{1,72}$"
7
0 commit comments