-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangelog.config.cjs
151 lines (148 loc) Β· 3.63 KB
/
changelog.config.cjs
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
const packages = ['backend', 'frontend']
const types = {
hotfix: {
description: 'Hotfix',
emoji: 'ποΈ',
value: 'hotfix'
},
feat: {
description: 'A new feature',
emoji: 'β¨',
value: 'feat'
},
fix: {
description: 'A bug fix',
emoji: 'π',
value: 'fix'
},
breaking: {
description: 'Breaking changes',
emoji: 'π₯',
value: 'breaking'
},
perf: {
description: 'A code change that improves performance',
emoji: 'β‘οΈ',
value: 'perf'
},
refactor: {
description: 'A code change that neither fixes a bug or adds a feature',
emoji: 'π',
value: 'refactor'
},
schema: {
description: 'Database related changes',
emoji: 'ποΈ ',
value: 'schema'
},
content: {
description: 'Content',
emoji: 'π',
value: 'content'
},
style: {
description: 'Visual',
emoji: 'π',
value: 'style'
},
assets: {
description: 'Assets (images/etc)',
emoji: 'π±',
value: 'assets'
},
cleanup: {
description: 'Cleaning up code/repository',
emoji: 'π₯',
value: 'cleanup'
},
docs: {
description: 'Documentation only changes',
emoji: 'βοΈ ',
value: 'docs'
},
test: {
description: 'Adding/updating tests',
emoji: 'β',
value: 'test'
},
formatting: {
description: 'Formatting',
emoji: 'π',
value: 'formatting'
},
dev: {
description: 'Development related changes',
emoji: 'π§°',
value: 'dev'
},
stories: {
description: 'Storybook updates',
emoji: 'π',
value: 'stories'
},
build: {
description: 'Build related changes',
emoji: 'π§°',
value: 'build'
},
ci: {
description: 'CI related changes',
emoji: 'π‘',
value: 'ci'
},
repository: {
description: 'Repository related changes',
emoji: 'π¦',
value: 'repository'
},
package: {
description: 'Package related changes',
emoji: 'π¦',
value: 'package'
},
dependencies: {
description: 'Dependencies related changes',
emoji: 'π¦',
value: 'dependencies'
},
release: {
description: 'Create a release commit',
emoji: 'πΉ',
value: 'release'
},
tools: {
description: 'Tools and scripts',
emoji: 'π οΈ ',
value: 'tools'
},
chore: {
description: 'Build process or auxiliary tool changes',
emoji: 'π€',
value: 'chore'
},
wip: {
description: 'Work in Progress',
emoji: 'π§',
value: 'wip'
}
}
const scopes = ['global', 'all', ...packages]
module.exports = {
disableEmoji: false,
format: '{type}{scope}: {emoji}{subject}',
list: Object.keys(types),
maxMessageLength: 80,
minMessageLength: 3,
questions: ['scope', 'type', 'subject', 'body', 'breaking', 'issues'],
scopes,
types,
messages: {
type: "Select the type of change that you're committing:",
customScope: 'Select the scope this change affects:',
subject: 'Write a short, imperative mood description of the change:\n',
body: 'Provide a longer description of the change:\n ',
breaking: 'List any breaking changes:\n',
footer: 'Issues this commit closes, e.g #123:',
confirmCommit: 'The packages that this commit has affected\n'
}
}