|
| 1 | +module.exports = { |
| 2 | + types: [ |
| 3 | + { |
| 4 | + value: 'feat', |
| 5 | + name: 'feat: new feature for the user, not a new feature for build script', |
| 6 | + }, |
| 7 | + { |
| 8 | + value: 'fix', |
| 9 | + name: 'fix: bug fix for the user, not a fix to a build script', |
| 10 | + }, |
| 11 | + { value: 'docs', name: 'docs: Documentation only changes' }, |
| 12 | + { |
| 13 | + value: 'style', |
| 14 | + name: 'style: formatting, missing semi colons, etc; no production code change', |
| 15 | + }, |
| 16 | + { |
| 17 | + value: 'refactor', |
| 18 | + name: 'refactor: refactoring production code, eg. renaming a variable', |
| 19 | + }, |
| 20 | + { |
| 21 | + value: 'test', |
| 22 | + name: 'test adding missing tests, refactoring tests; no production code change', |
| 23 | + }, |
| 24 | + { |
| 25 | + value: 'chore', |
| 26 | + name: "chore: Other changes that don't modify src or test files", |
| 27 | + }, |
| 28 | + { |
| 29 | + value: 'build', |
| 30 | + name: 'build: Changes that affect the build system or external dependencies', |
| 31 | + }, |
| 32 | + { |
| 33 | + value: 'ci', |
| 34 | + name: 'ci: Changes to our CI configuration files and scripts', |
| 35 | + }, |
| 36 | + { value: 'perf', name: 'perf: Performance related changes' }, |
| 37 | + { value: 'revert', name: 'revert: Revert to a commit' }, |
| 38 | + ], |
| 39 | + |
| 40 | + allowTicketNumber: true, |
| 41 | + isTicketNumberRequired: false, |
| 42 | + ticketNumberPrefix: 'TICKET-', |
| 43 | + ticketNumberRegExp: '\\d{1,5}', |
| 44 | + |
| 45 | + // override the messages, defaults are as follows |
| 46 | + messages: { |
| 47 | + type: "Select the type of change that you're committing:", |
| 48 | + scope: '\nDenote the SCOPE of this change (optional):', |
| 49 | + // used if allowCustomScopes is true |
| 50 | + customScope: 'Denote the SCOPE of this change:', |
| 51 | + subject: 'Write a SHORT, IMPERATIVE (lowercase) description of the change:\n', |
| 52 | + body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n', |
| 53 | + breaking: 'List any BREAKING CHANGES (optional):\n', |
| 54 | + footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n', |
| 55 | + confirmCommit: 'Are you sure you want to proceed with the commit above?', |
| 56 | + }, |
| 57 | + |
| 58 | + allowCustomScopes: true, |
| 59 | + allowBreakingChanges: ['feat', 'fix'], |
| 60 | + // skip any questions you want |
| 61 | + skipQuestions: ['ticketNumber'], |
| 62 | + |
| 63 | + // limit subject length |
| 64 | + subjectLimit: 120, |
| 65 | + // breaklineChar: '|', // It is supported for fields body and footer. |
| 66 | + // footerPrefix : 'ISSUES CLOSED:' |
| 67 | + // askForBreakingChangeFirst : true, // default is false |
| 68 | +}; |
0 commit comments