chore: adjust commitlink config
This commit is contained in:
parent
fd0032e0e9
commit
869a68812c
@ -11,6 +11,8 @@ module.exports = {
|
|||||||
{ value: 'ci', name:'ci: 修改 CI 配置、脚本' },
|
{ value: 'ci', name:'ci: 修改 CI 配置、脚本' },
|
||||||
{ value: 'chore', name:'chore: 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)' },
|
{ value: 'chore', name:'chore: 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)' },
|
||||||
{ value: 'revert', name:'revert: 回滚 commit' },
|
{ value: 'revert', name:'revert: 回滚 commit' },
|
||||||
|
{ value: 'wip', name:'wip: 开发中' },
|
||||||
|
{ value: 'mod', name:'mod: 不确定分类的修改' },
|
||||||
],
|
],
|
||||||
scopes: [
|
scopes: [
|
||||||
['custom', '自定义'],
|
['custom', '自定义'],
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
ignores: [(commit) => commit.includes('init')],
|
ignores: [(commit) => commit.includes('init')],
|
||||||
extends: ['@commitlint/config-conventional'],
|
extends: ['@commitlint/config-conventional'],
|
||||||
|
rules: {
|
||||||
|
'type-enum': [
|
||||||
|
2,
|
||||||
|
'always',
|
||||||
|
['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert', 'wip', 'mod'],
|
||||||
|
],
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user