Skip to content

Commit

Permalink
feat: change cz-config,scope can use empty
Browse files Browse the repository at this point in the history
  • Loading branch information
yangbo568969859 committed Apr 3, 2024
1 parent a7f2068 commit 89f5a5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .cz-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@ module.exports = {

// scope 类型(定义之后,可通过上下键选择)
scopes: [
['empty', '不显示scope'],
['docs', '文档相关'],
['components', '组件相关'],
['hooks', 'hook 相关'],
['utils', 'utils 相关'],
['element-ui', '对 element-ui 的调整'],
['styles', '样式相关'],
['deps', '项目依赖'],
['auth', '对 auth 修改'],
['other', '其他修改'],
// 如果选择 custom,后面会让你再输入一个自定义的 scope。也可以不设置此项,把后面的 allowCustomScopes 设置为 true
['custom', '以上都不是?我要自定义']
].map(([value, description]) => {
console.log(value, description)
return {
value,
value: value === 'empty' ? '' : value,
name: `${value.padEnd(30)} (${description})`
}
}),

// 是否允许自定义填写 scope,在 scope 选择的时候,会有 empty 和 custom 可以选择。
// allowCustomScopes: true,
allowCustomScopes: true,

// allowTicketNumber: false,
// isTicketNumberRequired: false,
Expand Down

0 comments on commit 89f5a5a

Please sign in to comment.