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...
起因是不想装 nodejs 一堆包,也不喜欢 js。 https://github.com/lintingzhen/commitizen-go https://github.com/lintingzhen/validate-commit-msg 求试用,求喷。 更多关于Golang Go语言中分享两个git commit小工具--commitizen和validate-commit-msg的实战系列教程也可以访问https://www.itying.com/category-94-...
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 的脚本文件。