1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| 用于说明 commit 的类别,常见类别如下:
types: [ { value: 'feat', name: 'feat:新增功能(feature)' }, { value: 'fix', name: 'fix:修订文档,如 Readme, Change Log, Contribute 等' }, { value: 'docs', name: 'docs:文档变更' }, { value: 'style', name: 'style:仅调整空格、格式缩进等(不改变代码逻辑的变动)' }, { value: 'refactor', name: '代码重构,未新增任何功能和修复任何 bug'}, { value: 'perf', name: 'perf:优化相关,改善性能和体验的修改' }, { value: 'test', name: 'test:测试用例的增加/修改' }, { value: 'chore', name: 'chore:构建过程或辅助工具的变动 非 src 和 test 的修改' }, { value: 'revert', name: 'revert: 回滚到上一个版本' }, { value: 'build', name: 'build:打包 改变构建流程,新增依赖库、工具等(例如 webpack、maven 修改)' } ], // 消息步骤 messages: { type: '请选择提交类型:', customScope: '请输入修改范围(可选):', subject: '请简要描述提交(必填):', body: '请输入详细描述(可选):', footer: '请输入要关闭的issue(可选):', confirmCommit: '确认使用以上信息提交?(y/n/e/h)' }
|