-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
commitizen.js
63 lines (63 loc) · 1.76 KB
/
commitizen.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
module.exports = {
allowBreakingChanges: [
`feat`,
`fix`
],
allowCustomScopes: true,
allowTicketNumber: false,
isTicketNumberRequired: false,
messages: {
body: `Provide a LONGER description of the change (optional). Use "|" to break new line:\n`,
breaking: `List any BREAKING CHANGES (optional):\n`,
confirmCommit: `Are you sure you want to proceed with the commit above ?`,
customScope: `SCOPE of this change:`,
scope: `\nSCOPE of this change (optional):`,
subject: `Write a SHORT, IMPERATIVE tense subject of the change:\n`,
type: `Select the type of change that you are committing:`
},
skipQuestions: [ `footer` ],
subjectLimit: 144,
// Any changes should also be made on the [semantic config](#/.github/semantic.yml)
types: [
{
name: `feat: A new feature`,
value: `feat`
},
{
name: `fix: A bug fix`,
value: `fix`
},
{
name: `style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)`,
value: `style`
},
{
name: `refactor: A code change that neither fixes a bug nor adds a feature`,
value: `refactor`
},
{
name: `perf: A code change that improves performance`,
value: `perf`
},
{
name: `test: Adding missing tests or correcting existing tests`,
value: `test`
},
{
name: `build: Changes that affect the build system or external dependencies`,
value: `build`
},
{
name: `ci: Changes that affect the CI configuration`,
value: `ci`
},
{
name: `docs: Changes to the documentation`,
value: `docs`
},
{
name: `chore: Anything else`,
value: `chore`
}
]
};