From 3df7550337d494862d6c1c703b3cecafc8c3a1d7 Mon Sep 17 00:00:00 2001 From: lanrtop Date: Sat, 4 Jul 2026 12:02:49 +0900 Subject: [PATCH] =?UTF-8?q?fix(onboarding):=20lefthook=20commit-msg=20?= =?UTF-8?q?=E5=8D=95=E8=A1=8C=E9=81=BF=E5=85=8D=20Windows=20shell=20{-bloc?= =?UTF-8?q?k=20=E8=A7=A3=E6=9E=90=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/resources/onboarding/lefthook.yml.tmpl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src-tauri/resources/onboarding/lefthook.yml.tmpl b/src-tauri/resources/onboarding/lefthook.yml.tmpl index b30ed28..276bbad 100644 --- a/src-tauri/resources/onboarding/lefthook.yml.tmpl +++ b/src-tauri/resources/onboarding/lefthook.yml.tmpl @@ -13,10 +13,4 @@ pre-commit: commit-msg: commands: conventional: - run: | - head -1 "{1}" | grep -qE '^(feat|fix|docs|chore|refactor|ci|perf|style|test|build|revert)(\(.+\))?!?: .+' || { - echo "✗ commit message 必须符合 Conventional Commits:(): <描述>" - echo " type: feat|fix|docs|chore|refactor|ci|perf|style|test|build|revert" - echo " 例:feat(auth/login): 新增手机号登录" - exit 1 - } + run: "head -1 \"{1}\" | grep -qE '^(feat|fix|docs|chore|refactor|ci|perf|style|test|build|revert)(\\(.+\\))?!?: .+' || exit 1"