|
1 | 1 | // cz.config.js |
2 | 2 | /** @type {import('cz-git').CommitizenGitOptions} */ |
3 | 3 | module.exports = { |
4 | | - alias: { fd: "docs: fix typos" }, |
| 4 | + alias: { fd: 'docs: fix typos' }, |
5 | 5 | messages: { |
6 | 6 | type: "Select the type of change that you're committing:", |
7 | | - scope: "Denote the SCOPE of this change (optional):", |
8 | | - customScope: "Denote the SCOPE of this change:", |
9 | | - subject: "Write a SHORT, IMPERATIVE tense description of the change:\n", |
| 7 | + scope: 'Denote the SCOPE of this change (optional):', |
| 8 | + customScope: 'Denote the SCOPE of this change:', |
| 9 | + subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n', |
10 | 10 | body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n', |
11 | 11 | breaking: |
12 | 12 | 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n', |
13 | 13 | footerPrefixesSelect: |
14 | | - "Select the ISSUES type of changeList by this change (optional):", |
15 | | - customFooterPrefix: "Input ISSUES prefix:", |
16 | | - footer: "List any ISSUES by this change. E.g.: #31, #34:\n", |
17 | | - generatingByAI: "Generating your AI commit subject...", |
18 | | - generatedSelectByAI: "Select suitable subject by AI generated:", |
19 | | - confirmCommit: "Are you sure you want to proceed with the commit above?", |
| 14 | + 'Select the ISSUES type of changeList by this change (optional):', |
| 15 | + customFooterPrefix: 'Input ISSUES prefix:', |
| 16 | + footer: 'List any ISSUES by this change. E.g.: #31, #34:\n', |
| 17 | + generatingByAI: 'Generating your AI commit subject...', |
| 18 | + generatedSelectByAI: 'Select suitable subject by AI generated:', |
| 19 | + confirmCommit: 'Are you sure you want to proceed with the commit above?', |
20 | 20 | }, |
21 | 21 | types: [ |
22 | | - { value: "feat", name: "feat: A new feature", emoji: ":sparkles:" }, |
23 | | - { value: "fix", name: "fix: A bug fix", emoji: ":bug:" }, |
| 22 | + { value: 'feat', name: 'feat: A new feature', emoji: ':sparkles:' }, |
| 23 | + { value: 'fix', name: 'fix: A bug fix', emoji: ':bug:' }, |
24 | 24 | { |
25 | | - value: "docs", |
26 | | - name: "docs: Documentation only changes", |
27 | | - emoji: ":memo:", |
| 25 | + value: 'docs', |
| 26 | + name: 'docs: Documentation only changes', |
| 27 | + emoji: ':memo:', |
28 | 28 | }, |
29 | 29 | { |
30 | | - value: "style", |
31 | | - name: "style: Changes that do not affect the meaning of the code", |
32 | | - emoji: ":lipstick:", |
| 30 | + value: 'style', |
| 31 | + name: 'style: Changes that do not affect the meaning of the code', |
| 32 | + emoji: ':lipstick:', |
33 | 33 | }, |
34 | 34 | { |
35 | | - value: "refactor", |
36 | | - name: "refactor: A code change that neither fixes a bug nor adds a feature", |
37 | | - emoji: ":recycle:", |
| 35 | + value: 'refactor', |
| 36 | + name: 'refactor: A code change that neither fixes a bug nor adds a feature', |
| 37 | + emoji: ':recycle:', |
38 | 38 | }, |
39 | 39 | { |
40 | | - value: "perf", |
41 | | - name: "perf: A code change that improves performance", |
42 | | - emoji: ":zap:", |
| 40 | + value: 'perf', |
| 41 | + name: 'perf: A code change that improves performance', |
| 42 | + emoji: ':zap:', |
43 | 43 | }, |
44 | 44 | { |
45 | | - value: "test", |
46 | | - name: "test: Adding missing tests or correcting existing tests", |
47 | | - emoji: ":white_check_mark:", |
| 45 | + value: 'test', |
| 46 | + name: 'test: Adding missing tests or correcting existing tests', |
| 47 | + emoji: ':white_check_mark:', |
48 | 48 | }, |
49 | 49 | { |
50 | | - value: "build", |
51 | | - name: "build: Changes that affect the build system or external dependencies", |
52 | | - emoji: ":package:", |
| 50 | + value: 'build', |
| 51 | + name: 'build: Changes that affect the build system or external dependencies', |
| 52 | + emoji: ':package:', |
53 | 53 | }, |
54 | 54 | { |
55 | | - value: "ci", |
56 | | - name: "ci: Changes to our CI configuration files and scripts", |
57 | | - emoji: ":ferris_wheel:", |
| 55 | + value: 'ci', |
| 56 | + name: 'ci: Changes to our CI configuration files and scripts', |
| 57 | + emoji: ':ferris_wheel:', |
58 | 58 | }, |
59 | 59 | { |
60 | | - value: "chore", |
| 60 | + value: 'chore', |
61 | 61 | name: "chore: Other changes that don't modify src or test files", |
62 | | - emoji: ":hammer:", |
| 62 | + emoji: ':hammer:', |
63 | 63 | }, |
64 | 64 | { |
65 | | - value: "revert", |
66 | | - name: "revert: Reverts a previous commit", |
67 | | - emoji: ":rewind:", |
| 65 | + value: 'revert', |
| 66 | + name: 'revert: Reverts a previous commit', |
| 67 | + emoji: ':rewind:', |
68 | 68 | }, |
69 | 69 | ], |
70 | 70 | useEmoji: false, |
71 | | - emojiAlign: "center", |
| 71 | + emojiAlign: 'center', |
72 | 72 | useAI: false, |
73 | 73 | aiNumber: 1, |
74 | | - themeColorCode: "", |
75 | | - scopes: ["rules"], |
| 74 | + themeColorCode: '', |
| 75 | + scopes: ['rules', 'release', 'deps'], |
76 | 76 | allowCustomScopes: true, |
77 | 77 | allowEmptyScopes: true, |
78 | | - customScopesAlign: "bottom", |
79 | | - customScopesAlias: "custom", |
80 | | - emptyScopesAlias: "empty", |
| 78 | + customScopesAlign: 'bottom', |
| 79 | + customScopesAlias: 'custom', |
| 80 | + emptyScopesAlias: 'empty', |
81 | 81 | upperCaseSubject: false, |
82 | 82 | markBreakingChangeMode: false, |
83 | | - allowBreakingChanges: ["feat", "fix"], |
| 83 | + allowBreakingChanges: ['feat', 'fix'], |
84 | 84 | breaklineNumber: 100, |
85 | | - breaklineChar: "|", |
| 85 | + breaklineChar: '|', |
86 | 86 | skipQuestions: [], |
87 | 87 | issuePrefixes: [ |
88 | | - { value: "closed", name: "closed: ISSUES has been processed" }, |
| 88 | + { value: 'closed', name: 'closed: ISSUES has been processed' }, |
89 | 89 | ], |
90 | | - customIssuePrefixAlign: "top", |
91 | | - emptyIssuePrefixAlias: "skip", |
92 | | - customIssuePrefixAlias: "custom", |
| 90 | + customIssuePrefixAlign: 'top', |
| 91 | + emptyIssuePrefixAlias: 'skip', |
| 92 | + customIssuePrefixAlias: 'custom', |
93 | 93 | allowCustomIssuePrefix: true, |
94 | 94 | allowEmptyIssuePrefix: true, |
95 | 95 | confirmColorize: true, |
96 | 96 | maxHeaderLength: Infinity, |
97 | 97 | maxSubjectLength: Infinity, |
98 | 98 | minSubjectLength: 0, |
99 | 99 | scopeOverrides: undefined, |
100 | | - defaultBody: "", |
101 | | - defaultIssues: "", |
102 | | - defaultScope: "", |
103 | | - defaultSubject: "", |
| 100 | + defaultBody: '', |
| 101 | + defaultIssues: '', |
| 102 | + defaultScope: '', |
| 103 | + defaultSubject: '', |
104 | 104 | }; |
0 commit comments