diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 874dfd25..5c0eb259 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,9 @@ on: push: branches: - next + pull_request: + branches: + - next jobs: build: diff --git a/README.md b/README.md index 50db91f9..afb7ec15 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,8 @@ - docs 文档/注释 - chore 依赖更新/脚手架配置修改等 +[rules](https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/index.js) + 提交模式如下: `type(scope?): subject` diff --git a/package.json b/package.json index 63b14a9d..0294bf92 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ }, "husky": { "hooks": { - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" + "commit-msg": "yarn lint && commitlint -E HUSKY_GIT_PARAMS" } }, "license": "MIT",