-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.cz-config.js
48 lines (48 loc) · 2.52 KB
/
.cz-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
messages: {
type: "Select the TYPE of change that you're committing:",
scope: "Denote the SCOPE of this change:",
customScope: "Denote the SCOPE of this change:",
subject: "Write a SHORT, IMPERATIVE tense description of the change:\n",
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
footerPrefixesSelect: "Select the ISSUES type of changeList by this change (optional):",
customFooterPrefix: "Input ISSUES prefix:",
footer: "List any ISSUES by this change. E.g.: #31, #34:\n",
generatingByAI: 'Generating your AI commit subject...',
generatedSelectByAI: 'Select suitable subject by AI generated:',
confirmCommit: "Are you sure you want to proceed with the commit above?"
},
types: [
{ value: "✨ feat", name: "A new feature" },
{ value: "🐛 fix", name: "A bug fix" },
{ value: "🚑 hotfix", name: "A temporary hotfix" },
{ value: "🔧 chore", name: "Other changes that don't modify src or test files" },
{ value: "♻️ refactor", name: "A code change that neither fixes a bug nor adds a feature" },
{ value: "🚧 WIP", name: "A code change that is in progress, adding a feature or fix" },
{ value: "📚 docs", name: "Documentation only changes" },
{ value: "⚡️ perf", name: "A code change that improves performance" },
{ value: "💄 style", name: "Changes that do not affect the meaning of the code" },
{ value: "🏗️ build", name: "Changes that affect the build system or external dependencies" },
{ value: "👷 ci", name: "Changes to our CI configuration files and scripts" },
{ value: "✅ test", name: "Adding missing tests or correcting existing tests" },
{ value: "⏪ revert", name: "Reverts a previous commit" },
{ value: "➕ dep-add", name: "Add a dependency" },
{ value: "➖ dep-rm", name: "Remove a dependency" }
],
usePreparedCommit: false, // to re-use commit from ./.git/COMMIT_EDITMSG
allowTicketNumber: true,
isTicketNumberRequired: true,
ticketNumberPrefix: 'TICKET-',
ticketNumberRegExp: '\\d{1,5}',
scopeOverrides: {
'add_dep': [
{ name: 'conda' },
{ name: 'pip' },
{ name: 'poetry' }
]
},
allowCustomScopes: true,
allowBreakingChanges: ['feat', 'fix'],
subjectLimit: 100,
}