5 Star 0 Fork 0

任涵彬/PSY-com

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.cz-config.js 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
钱程 提交于 2021-08-24 23:17 . fix: eslint finish
module.exports = {
types: [
{ value: 'feat', name: '特性: 一个新的特性' },
{ value: 'fix', name: '修复: 修复一个Bug' },
{ value: 'docs', name: '文档: 变更的只有文档' },
{
value: 'style',
name: '格式: 空格, 分号等格式修复',
},
{
value: 'refactor',
name: '重构: 代码重构,注意和特性、修复区分开',
},
{
value: 'perf',
name: '性能: 提升性能',
},
{ value: 'test', name: '测试: 添加一个测试' },
{
value: 'chore',
name: '工具: 开发工具变动(构建、脚手架工具等)',
},
{ value: 'revert', name: '回滚: 代码回退' },
],
scopes: [],
allowTicketNumber: false,
isTicketNumberRequired: false,
ticketNumberPrefix: 'TICKET-',
ticketNumberRegExp: '\\d{1,5}',
// it needs to match the value for field type. Eg.: 'fix'
/*
scopeOverrides: {
fix: [
{name: 'merge'},
{name: 'style'},
{name: 'e2eTest'},
{name: 'unitTest'}
]
},
*/
// override the messages, defaults are as follows
messages: {
type: '选择一种你的提交类型:',
scope: '\n选择一个scope (可选):',
// used if allowCustomScopes is true
customScope: 'Denote the SCOPE of this change:',
subject: '短说明:\n',
body: '长说明,使用"|"换行(可选):\n',
breaking: '非兼容性说明 (可选):\n',
footer: '关联关闭的issue,例如:#31, #34(可选):\n',
confirmCommit: '确定提交说明?',
},
allowCustomScopes: true,
allowBreakingChanges: ['feat', 'fix'],
// skip any questions you want
skipQuestions: ['body'],
// limit subject length
subjectLimit: 100,
// breaklineChar: '|', // It is supported for fields body and footer.
// footerPrefix : 'ISSUES CLOSED:'
// askForBreakingChangeFirst : true, // default is false
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sageren/psy-com.git
git@gitee.com:sageren/psy-com.git
sageren
psy-com
PSY-com
develop

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385