chore: adjust commitlink config

This commit is contained in:
张传龙 2022-08-04 18:04:08 +08:00
parent fd0032e0e9
commit 869a68812c
2 changed files with 9 additions and 0 deletions

View File

@ -11,6 +11,8 @@ module.exports = {
{ value: 'ci', name:'ci: 修改 CI 配置、脚本' },
{ value: 'chore', name:'chore: 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)' },
{ value: 'revert', name:'revert: 回滚 commit' },
{ value: 'wip', name:'wip: 开发中' },
{ value: 'mod', name:'mod: 不确定分类的修改' },
],
scopes: [
['custom', '自定义'],

View File

@ -1,4 +1,11 @@
module.exports = {
ignores: [(commit) => commit.includes('init')],
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert', 'wip', 'mod'],
],
},
}