-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.cz-config.js
More file actions
32 lines (29 loc) Β· 1.14 KB
/
.cz-config.js
File metadata and controls
32 lines (29 loc) Β· 1.14 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
const typeEnums = {
'β¨ feat': 'μλ‘μ΄ κΈ°λ₯ μΆκ°',
'π fix': 'λ²κ·Έ ν΄κ²° / μμ ',
'π docs': 'λ¬Έμ μΆκ° λλ μμ ',
'π¨ style': 'μ½λ μ€νμΌ λ³κ²½ (μ½λ ν¬λ§€ν
, μΈλ―Έμ½λ‘ λλ½ λ±)',
'π design': 'μ¬μ©μ UI λμμΈ λ³κ²½ (CSS λ±)',
'β»οΈ refactor': '리ν©ν λ§',
'π§ͺ test': 'ν
μ€νΈ μ½λ, 리ν©ν λ§ (Test Code)',
'π· build': 'λΉλ νμΌ μμ ',
'π ci': 'CI κ΅¬μ± νμΌ λ° μ€ν¬λ¦½νΈ λ³κ²½',
'β‘οΈ perf': 'μ±λ₯ κ°μ ',
'π‘ comment': 'νμν μ£Όμ μΆκ° λ° λ³κ²½',
'π§ chore': 'μμν μμ μ΄λ λΉλ μ
λ°μ΄νΈ',
'π rename': 'νμΌ νΉμ ν΄λλͺ
μ μμ λ§ ν κ²½μ°',
'π₯ remove': 'νμΌμ μμ λ§ ν κ²½μ°',
};
const maxSpaceLength = Object.keys(typeEnums).reduce(
(acc, { length }) => (length > acc ? length : acc),
0
);
const commitizenConfig = {
types: Object.entries(typeEnums).map(([type, description]) => ({
value: type,
name: `${type}: ${' '.repeat(maxSpaceLength - type.length)}` + description,
})),
skipQuestions: ['footer'],
skipEmptyScopes: true,
};
module.exports = commitizenConfig;