-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
82 lines (79 loc) · 2.1 KB
/
config.js
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
const required = "代码千万行,注释第一行。编码不规范,同事两行泪。"
// type: CHECKBOX | RADIO | INPUT
module.exports = {
title: "Welcome ClickPaas git Commitizen...",
rules: [
{
type: 'RADIO',
name: 'commitType',
commitFix: "",
description: {
'en-US': `Select the type of change that you're committing`,
'zh-CN': '请选择提交内容的类型',
},
required,
options: [
{
title: 'when add a new feature',
value: '✨'
}, {
title: 'when fixing a bug',
value: '🐛'
}, {
title: 'when improving performance',
value: '🐎'
}, {
title: 'when improving the format/structure of the code',
value: '🎨'
}, {
title: 'when plugging memory leaks',
value: '🚱'
}, {
title: 'when writing docs',
value: '📝'
}, {
title: 'when fixing something on Linux',
value: '🐧'
}, {
title: 'when fixing something on macOS',
value: '🍎'
}, {
title: 'when fixing something on Windows',
value: '🏁'
}, {
title: 'when removing code or files',
value: '🔥'
}, {
title: 'when fixing the CI build',
value: '💚'
}, {
title: 'when adding tests',
value: '✅'
}, {
title: 'when dealing with security',
value: '🔒'
}, {
title: 'when upgrading dependencies',
value: '⬆️'
}, {
title: 'when downgrading dependencies',
value: '⬇️'
}, {
title: 'when removing linter warnings',
value: '👕'
}
]
},
{
type: 'INPUT',
name: 'description',
commitFix: "",
placeholder: "Enter here ...",
description: {
'en-US': 'Write a short, imperative tense description of the change',
'zh-CN': '请简单描述一下作出的更改',
},
required,
},
]
}