fix(onboarding): lefthook.yml.tmpl 用 COMMIT_EDITMSG 替换 {1}

lefthook v2 在 Windows 上解析 YAML 时会将 {1} 与模板变量混淆,
改为直接读取 .git/COMMIT_EDITMSG,与 react-phone-apps 修复保持一致。
This commit is contained in:
lanrtop 2026-07-04 16:50:55 +09:00
parent cf86ab688a
commit 892e5977ed

View File

@ -13,4 +13,4 @@ pre-commit:
commit-msg: commit-msg:
commands: commands:
conventional: conventional:
run: "head -1 \"{1}\" | grep -qE '^(feat|fix|docs|chore|refactor|ci|perf|style|test|build|revert)(\\(.+\\))?!?: .+' || exit 1" run: "head -1 .git/COMMIT_EDITMSG | grep -qE '^(feat|fix|docs|chore|refactor|ci|perf|style|test|build|revert)(\\(.+\\))?!?: .+' || exit 1"