Skip to content

Commit

Permalink
ci: add pull check
Browse files Browse the repository at this point in the history
  • Loading branch information
hq001 committed Nov 19, 2020
1 parent fbe1c99 commit 658ebad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- next
pull_request:
branches:
- next

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
- docs 文档/注释
- chore 依赖更新/脚手架配置修改等

[rules](https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/index.js)

提交模式如下:
`type(scope?): subject`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
"commit-msg": "yarn lint && commitlint -E HUSKY_GIT_PARAMS"
}
},
"license": "MIT",
Expand Down

0 comments on commit 658ebad

Please sign in to comment.