Browse Source

chore: remove the step to run unit tests and typecheck before git commit (#658)

#### 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
```
pull/660/head^2
Ryan Wang 2 years ago committed by GitHub
parent
commit
8948a4ccf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .husky/pre-commit

2
.husky/pre-commit

@ -1,7 +1,5 @@
#!/bin/sh #!/bin/sh
. "$(dirname "$0")/_/husky.sh" . "$(dirname "$0")/_/husky.sh"
pnpm test:unit
pnpm typecheck
pnpm prettier pnpm prettier
pnpm lint pnpm lint

Loading…
Cancel
Save