chore: configure commitlint
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

This commit is contained in:
严浩
2025-05-03 16:00:52 +08:00
parent ce914d3275
commit e5dd7aa70e
4 changed files with 500 additions and 8 deletions

View File

@ -1,5 +1,6 @@
# 此钩子在 pre-commit 钩子成功完成后,用于检查提交消息。
echo "📝 [Commit-msg] 正在运行 commit-msg 钩子..."
# 在这里添加你的 commit message 验证逻辑,例如 commitlint
echo "当前提交的文件是:$1"
# npx --no -- commitlint --edit "$1"
pnpm exec commitlint --edit $1
echo "✅ [Commit-msg] commit-msg 钩子完成!"