The scope of your commit message should be one (or more) of the packages:EG:{ "config": { "validate-commit-msg": { "scope": { "required": true, "allowed": ["package-1", "package-2"], "validate": true, "multiple": true }, } } }Other...
$ npm install validate-commit-message Usage You can activate the hook from the command line of your project. $ node ./node_modules/.bin/validate-commit-msg A more consistent way is to add a script in your package.json. "scripts": { "init": "validate-commit-msg" } Then execute $ n...
ionicwang4楼•4 个月前 vueper5楼•4 个月前 nodeper6楼•4 个月前 eggper7楼•4 个月前 itying8888楼•4 个月前
refs/heads/camel-2.11.x 51423f7f0 -> 6e7036369 fixed two tiny bugs of the HL7DataFormat#isValidate() & HL7MLLPConfig#isValidate() methods. Project:http://git-wip-us.apache.org/repos/asf/camel/repoCommit:http://git-wip-us.apache.org/repos/asf/camel/commit/6e703636Tree:http://git-wip...
有了提交规范,但是不能保证开发人员在commit代码的同时一定是按照规范,书写commit messagede ,所有我们需要在commit前对开发人员的commit message进行校验,目前github上存在很多用于检查 Node 项目的 Commit message 的库,比如validate-commit-msg.js,也可以用node写自己的校验 Commit message 的脚本文件。