1.2.2 • Published 7 years ago
@naughty/githook-vcm v1.2.2
@naughty/githook-vcm
用于验证 git-commit-msg,支持 husky、yorkie 设置的 githook
如何使用?
安装
$ npm install -D @naughty/githook-vcm命令
githook-vcm [options]格式
<type>(<scope>): <subject>验证规则
/^(revert: )?(feat|fix|docs|style|refactor|perf|opt|test|workflow|ci|release|chore|types)(\(.+\)): .{1,50}/选项
--allow-merge: 允许合并,默认禁用合并--ignore-type: 忽略type的验证--ignore-scope: 忽略scope的验证--max:commit-msg的最大长度,默认为50
与 husky 一起使用,在 package.json 中添加:
"config": {
"hooks": {
"commit-msg": "githook-vcm"
}
}与 yorkie 一起使用,在 package.json 中添加:
"gitHooks": {
"commit-msg": "githook-vcm"
}