|
| 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: '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: 'build', name: 'build: Change project builds or external dependencies' }, |
| 27 | + ], |
| 28 | + // override the messages, defaults are as follows |
| 29 | + messages: { |
| 30 | + type: "Select the type of change that you're committing:", |
| 31 | + scope: '\nDenote the SCOPE of this change (optional):', |
| 32 | + // used if allowCustomScopes is true |
| 33 | + customScope: 'Denote the SCOPE of this change:', |
| 34 | + subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n', |
| 35 | + body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n', |
| 36 | + breaking: 'List any BREAKING CHANGES (optional):\n', |
| 37 | + footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n', |
| 38 | + confirmCommit: 'Are you sure you want to proceed with the commit above?', |
| 39 | + }, |
| 40 | + |
| 41 | + allowCustomScopes: true, |
| 42 | + allowBreakingChanges: ['feat', 'fix'], |
| 43 | + |
| 44 | + // limit subject length |
| 45 | + subjectLimit: 100, |
| 46 | +}; |
0 commit comments