|
| 1 | +'use strict'; |
| 2 | + |
| 3 | +module.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: |
| 11 | + 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)', |
| 12 | + }, |
| 13 | + {value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature'}, |
| 14 | + {value: 'perf', name: 'perf: A code change that improves performance'}, |
| 15 | + {value: 'test', name: 'test: Adding missing tests'}, |
| 16 | + { |
| 17 | + value: 'chore', |
| 18 | + name: |
| 19 | + 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation', |
| 20 | + }, |
| 21 | + {value: 'revert', name: 'revert: Revert to a commit'}, |
| 22 | + {value: 'WIP', name: 'WIP: Work in progress'}, |
| 23 | + ], |
| 24 | + |
| 25 | + scopes: [{name: 'monorepo'}, {name: 'scully'}, {name: 'schematics'}, {name: 'lib'}], |
| 26 | + |
| 27 | + // it needs to match the value for field type. Eg.: 'fix' |
| 28 | + /* |
| 29 | + scopeOverrides: { |
| 30 | + fix: [ |
| 31 | + {name: 'merge'}, |
| 32 | + {name: 'style'}, |
| 33 | + {name: 'e2eTest'}, |
| 34 | + {name: 'unitTest'} |
| 35 | + ] |
| 36 | + }, |
| 37 | + */ |
| 38 | + // override the messages, defaults are as follows |
| 39 | + messages: { |
| 40 | + type: "Select the type of change that you're committing:", |
| 41 | + scope: '\nDenote the SCOPE of this change (optional):', |
| 42 | + // used if allowCustomScopes is true |
| 43 | + customScope: 'Denote the SCOPE of this change:', |
| 44 | + subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n', |
| 45 | + body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n', |
| 46 | + breaking: 'List any BREAKING CHANGES (optional):\n', |
| 47 | + footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n', |
| 48 | + confirmCommit: 'Are you sure you want to proceed with the commit above?', |
| 49 | + }, |
| 50 | + |
| 51 | + allowCustomScopes: true, |
| 52 | + allowBreakingChanges: ['feat', 'fix', 'perf'], |
| 53 | + |
| 54 | + // limit subject length |
| 55 | + subjectLimit: 100, |
| 56 | +}; |
0 commit comments