1.2.2 • Published 5 years ago

@naughty/githook-vcm v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@naughty/githook-vcm

用于验证 git-commit-msg,支持 huskyyorkie 设置的 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"
}
1.2.2

5 years ago

1.2.1

5 years ago

0.1.6

5 years ago

0.1.4

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago