-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathczvinyl.config.ts
More file actions
34 lines (32 loc) · 1.23 KB
/
czvinyl.config.ts
File metadata and controls
34 lines (32 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { CzVinylConfig } from 'cz-vinyl'
const config: CzVinylConfig = {
headerFormat: '{type}{scope}: {subject}',
bodyFormat: '{body}',
commitTypes: [
{ value: 'feat', description: '新增功能' },
{ value: 'fix', description: '修复缺陷' },
{ value: 'docs', description: '文档更新' },
{ value: 'style', description: '代码格式' },
{ value: 'refactor', description: '重构代码' },
{ value: 'perf', description: '性能优化' },
{ value: 'test', description: '增加测试' },
{ value: 'chore', description: '构建过程或辅助工具变动' },
{ value: 'ci', description: '持续集成相关的变动' }
],
maxCommitLineWidth: 72,
typeQuestion: '请选择提交类型:',
scopeQuestion: '请选择修改范围(可选):',
skipScope: false,
ticketIdQuestion: '请输入关联的任务号(可选):',
skipTicketId: true,
subjectQuestion: '请简要描述提交内容(必填):',
subjectMaxLength: 50,
subjectMinLength: 5,
bodyQuestion: '请输入详细描述(可选):',
skipBody: false,
skipBreakingChanges: true,
issuesQuestion: '请输入要关闭的issue(可选,例如:#1):',
skipIssues: false,
openAiToken: null
}
export default config