1 | module.exports = {
|
2 | types: [
|
3 | { value: 'feat', name: 'feat: A new feature' },
|
4 | { value: 'fix', name: 'fix: A bug fix' },
|
5 | { value: 'docs', name: 'docs: Documentation only changes' },
|
6 | {
|
7 | value: 'style',
|
8 | name:
|
9 | 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
|
10 | },
|
11 | {
|
12 | value: 'refactor',
|
13 | name: 'refactor: A code change that neither fixes a bug nor adds a feature',
|
14 | },
|
15 | {
|
16 | value: 'perf',
|
17 | name: 'perf: A code change that improves performance',
|
18 | },
|
19 | { value: 'test', name: 'test: Adding missing tests' },
|
20 | {
|
21 | value: 'chore',
|
22 | name:
|
23 | 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation',
|
24 | },
|
25 | { value: 'revert', name: 'revert: Revert to a commit' },
|
26 | { value: 'WIP', name: 'WIP: Work in progress' },
|
27 | ],
|
28 |
|
29 | scopes: [{ name: 'accounts' }, { name: 'admin' }, { name: 'exampleScope' }, { name: 'changeMe' }],
|
30 |
|
31 | allowTicketNumber: false,
|
32 | isTicketNumberRequired: false,
|
33 | ticketNumberPrefix: 'TICKET-',
|
34 | ticketNumberRegExp: '\\d{1,5}',
|
35 |
|
36 |
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | messages: {
|
50 | type: "Select the type of change that you're committing:",
|
51 | scope: '\nDenote the SCOPE of this change (optional):',
|
52 |
|
53 | customScope: 'Denote the SCOPE of this change:',
|
54 | subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
|
55 | body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
|
56 | breaking: 'List any BREAKING CHANGES (optional):\n',
|
57 | footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
|
58 | confirmCommit: 'Are you sure you want to proceed with the commit above?',
|
59 | },
|
60 |
|
61 | allowCustomScopes: true,
|
62 | allowBreakingChanges: ['feat', 'fix'],
|
63 |
|
64 | skipQuestions: ['body'],
|
65 |
|
66 |
|
67 | subjectLimit: 100,
|
68 |
|
69 |
|
70 |
|
71 | };
|