diff --git a/.cz-config.js b/.cz-config.js index 71abbc2..76c53b1 100644 --- a/.cz-config.js +++ b/.cz-config.js @@ -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', '自定义'], diff --git a/commitlint.config.js b/commitlint.config.js index 0ee8c70..afa52ac 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -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'], + ], + }, }