Files
vue-ts-example/.husky/commit-msg
严浩 e5dd7aa70e
All checks were successful
/ build-and-deploy-to-vercel (push) Successful in 3m12s
/ surge (push) Successful in 2m52s
/ playwright (push) Successful in 2m22s
/ cleanup_surge (push) Successful in 15s
/ lint-build-and-check (push) Successful in 5m42s
chore: configure commitlint
2025-05-03 16:00:52 +08:00

7 lines
293 B
Plaintext

# 此钩子在 pre-commit 钩子成功完成后,用于检查提交消息。
echo "📝 [Commit-msg] 正在运行 commit-msg 钩子..."
echo "当前提交的文件是:$1"
# npx --no -- commitlint --edit "$1"
pnpm exec commitlint --edit $1
echo "✅ [Commit-msg] commit-msg 钩子完成!"