✖ subject may notbeempty[subject-empty] ✖typemay notbeempty[type-empty] 五、Commitlint的高级配置 5.1 自定义规则 可以根据团队需求自定义Commitlint规则。例如,要求每条提交消息必须包含范围(scope)。 在commitlint.config.js中添加自定义规则: module.exports = { extends: ['@commitlint/config-conve...
在 配置 commitlint 的时候,执行完 yarn add @commitlint/{config-conventional,cli} 和 echo “module.exports = {extends: [’@commitlint/config-conventional’]}” > commitlint.config.js 2个步骤后,还剩最后一个步骤:提交 提交失败问题:subject may not be empty。视频中老师说到提交commitlint内容可以用ci提...
✖ subject may not be empty [subject-empty] ✖ type may not be empty [type-empty] ✖ found 2 problems, 0 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint husky - commit-msg hook exited with code 1 (error) 这是自己实现的步骤,提交规则...
配置 npx husky add .husky/commit-msg "npx --no -- commitlint --edit ${1}" 测试 ## 错误示例PS C:\Users\WangYang\Documents\Project\electron-vite-vue> git commit -m "commitlint"→ No staged files match any configured task.⧗ input: commitlint✖ subject may not be empty [subject-emp...
✖ subject may not be empty [subject-empty] ✖ type may not be empty [type-empty] ✖ found2problems,0warnings ⓘGethelp:https://github.com/conventional-changelog/commitlint/#what-is-commitlinthusky - commit-msg hook exitedwithcode1(error) ...
✖ subject may not beempty[subject-empty]✖ type may not beempty[type-empty]✖ found2problems,0warnings ⓘ Get help:https://github.com/conventional-changelog/commitlint/#what-is-commitlinthusky-commit-msg hook exited with code1(error) ...
配置 shellnpx husky add .husky/commit-msg "npx --no -- commitlint --edit ${1}" 测试 shell## 错误示例PS C:\Users\WangYang\Documents\Project\electron-vite-vue> git commit -m "commitlint"→ No staged files match any configured task.⧗ input: commitlint✖ subject may not be empty [...
✖ subject may not be empty[subject-empty]✖ type may not be empty[type-empty]✖ found2problems,0warnings ⓘ Get help:https://github.com/conventional-changelog/commitlint/#what-is-commitlint husky-commit-msg hook exitedwithcode1(error)## 正确示例PSC:\Users\WangYang\Documents\Project\ele...
npx husky add .husky/commit-msg "npx --no -- commitlint --edit ${1}" 测试 ## 错误示例PS C:\Users\WangYang\Documents\Project\electron-vite-vue> git commit -m "commitlint"→ No staged files match any configured task.? input: commitlint? subject may not be empty [subject-empty]? type...
downloaded 0, added 125, done ⧗ input: 新增 husky commitlit ✖ subject may not be empty [subject-empty] ✖ type may not be empty [type-empty] ✖ found 2 problems, 0 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint ... 总结 ...