From 8948a4ccf9dc6f90d415585914d7e7af27555034 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 24 Oct 2022 11:22:10 +0800 Subject: [PATCH] chore: remove the step to run unit tests and typecheck before git commit (#658) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement /milestone 2.0 #### What this PR does / why we need it: 移除在 Git Commit 之前运行单元测试和类型检查的步骤。因为目前 main 分支处于保护分支,无法直接推送代码。所以仅在 PR 中的 Action 来运行这两个步骤即可。 #### Special notes for your reviewer: /cc @halo-dev/sig-halo-console #### Does this PR introduce a user-facing change? ```release-note None ``` --- .husky/pre-commit | 2 -- 1 file changed, 2 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 0bbe3c09..070dcd65 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,7 +1,5 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -pnpm test:unit -pnpm typecheck pnpm prettier pnpm lint