UNPKG

2.48 kBJavaScriptView Raw
1console.info('>>> local config in repo: ', __dirname);
2
3module.exports = {
4 types: [
5 { value: 'feat', name: 'feat: A new feature' },
6 { value: 'fix', name: 'fix: A bug fix' },
7 { value: 'docs', name: 'docs: Documentation only changes' },
8 {
9 value: 'style',
10 name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
11 },
12 {
13 value: 'refactor',
14 name: 'refactor: A code change that neither fixes a bug nor adds a feature',
15 },
16 {
17 value: 'perf',
18 name: 'perf: A code change that improves performance',
19 },
20 { value: 'test', name: 'test: Adding missing tests' },
21 {
22 value: 'chore',
23 name: '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 // it needs to match the value for field type. Eg.: 'fix'
37 /*
38 scopeOverrides: {
39 fix: [
40
41 {name: 'merge'},
42 {name: 'style'},
43 {name: 'e2eTest'},
44 {name: 'unitTest'}
45 ]
46 },
47 */
48 // override the messages, defaults are as follows
49 messages: {
50 type: "Select the type of change that you're committing:",
51 scope: '\nDenote the SCOPE of this change (optional):',
52 // used if allowCustomScopes is true
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 // skip any questions you want
64 skipQuestions: ['body'],
65
66 // limit subject length
67 subjectLimit: 100,
68 // breaklineChar: '|', // It is supported for fields body and footer.
69 // footerPrefix : 'ISSUES CLOSED:'
70 // askForBreakingChangeFirst : true, // default is false
71};