代码拉取完成,页面将自动刷新
/*
* @Author: DevinShi
* @Date: 2020-02-03 09:01:16
* @LastEditors: DevinShi
* @LastEditTime: 2020-02-03 09:08:38
* @Description: file content description
*/
"use strict";
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: [
// {name: '模块1'},
// {name: '模块2'},
// {name: '模块3'},
// {name: '模块4'}
// ],
// it needs to match the value for field type. Eg.: 'fix'
scopeOverrides: {
fix: [
{ name: "功能" },
{ name: "样式" },
{ name: "e2e测试" },
{ name: "单元测试" }
],
chore: [{
name: '依赖修改',
}, {
name: '打包工具'
}]
},
// override the messages, defaults are as follows
messages: {
type: "选择一种你的提交类型:",
scope: "选择一个scope (可选):",
// used if allowCustomScopes is true
customScope: "自定义一个scope用于这次提交:",
subject: "短说明:\n",
body: '长说明,使用"|"换行(可选):\n',
breaking: "非兼容性说明 (可选):\n",
footer: "关联关闭的issue,例如:#31, #34(可选):\n",
confirmCommit: "确定提交说明?"
},
allowCustomScopes: true,
allowBreakingChanges: ["feat", "fix"],
// limit subject length
subjectLimit: 100
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。