|
| 1 | +module.exports = { |
| 2 | + // add additional standard scopes here |
| 3 | + scopes: [{ name: "accounts" }, { name: "admin" }], |
| 4 | + // use this to permanently skip any questions by listing the message key as a string |
| 5 | + skipQuestions: [], |
| 6 | + |
| 7 | + /* DEFAULT CONFIG */ |
| 8 | + messages: { |
| 9 | + type: "What type of changes are you committing:", |
| 10 | + scope: "\nEnlighten us with the scope (optional):", |
| 11 | + customScope: "Add the scope of your liking:", |
| 12 | + subject: "Write a short and simple description of the change:\n", |
| 13 | + body: |
| 14 | + 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n', |
| 15 | + breaking: "List any BREAKING CHANGES (optional):\n", |
| 16 | + footer: |
| 17 | + "List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n", |
| 18 | + confirmCommit: "Are you sure you the above looks right?", |
| 19 | + }, |
| 20 | + types: [ |
| 21 | + { |
| 22 | + value: "fix", |
| 23 | + name: "🐛 fix: Changes that fix a bug", |
| 24 | + emoji: "🐛", |
| 25 | + }, |
| 26 | + { |
| 27 | + value: "feat", |
| 28 | + name: " 🚀 feat: Changes that introduce a new feature", |
| 29 | + emoji: "🚀", |
| 30 | + }, |
| 31 | + { |
| 32 | + value: "refactor", |
| 33 | + name: |
| 34 | + "🔍 refactor: Changes that neither fixes a bug nor adds a feature", |
| 35 | + emoji: "🔍", |
| 36 | + }, |
| 37 | + { |
| 38 | + value: "test", |
| 39 | + name: "💡 test: Adding missing tests", |
| 40 | + emoji: "💡", |
| 41 | + }, |
| 42 | + { |
| 43 | + value: "style", |
| 44 | + name: |
| 45 | + "💅 style: Changes that do not impact the code base \n (white-space, formatting, missing semi-colons, etc)", |
| 46 | + emoji: "💅", |
| 47 | + }, |
| 48 | + { |
| 49 | + value: "docs", |
| 50 | + name: "📝 docs: Changes to the docs", |
| 51 | + emoji: "📝", |
| 52 | + }, |
| 53 | + { |
| 54 | + value: "chore", |
| 55 | + name: |
| 56 | + "🤖 chore: Changes to the build process or auxiliary tools\n and or libraries such as auto doc generation", |
| 57 | + emoji: "🤖", |
| 58 | + }, |
| 59 | + ], |
| 60 | + allowTicketNumber: false, |
| 61 | + isTicketNumberRequired: false, |
| 62 | + ticketNumberPrefix: "#", |
| 63 | + ticketNumberRegExp: "\\d{1,5}", |
| 64 | + allowCustomScopes: true, |
| 65 | + allowBreakingChanges: ["feat", "fix", "chore"], |
| 66 | + breakingPrefix: "🚧 BREAKING CHANGES 🚧", |
| 67 | + footerPrefix: "CLOSES ISSUE:", |
| 68 | + subjectLimit: 100, |
| 69 | +}; |
0 commit comments