Files
vue-ts-example-2025/.husky/commit-msg
严浩 61e86e731d
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 2m1s
CI/CD Pipeline / build-and-deploy (push) Successful in 3m17s
chore(husky): 移除时间命令以简化 commit-msg、post-merge 和 pre-commit 钩子
2025-11-06 13:39:02 +08:00

14 lines
380 B
Plaintext

# 此钩子在 pre-commit 钩子成功完成后,用于检查提交消息。
echo "📝 [Commit-msg] 正在运行 commit-msg 钩子..."
echo "🟢 检查提交消息:$1"
cat $1
# node -v
echo "🟢 [Commit-msg] Node 版本:$(node -v)"
# pnpm exec commitlint --edit $1
node node_modules/@commitlint/cli/cli.js --edit $1
echo "📝 [Commit-msg] commit-msg 钩子完成!"