Skip to content

Commit 0e25fb5

Browse files
authored
Merge pull request #76 from cmolisee/hotfix-lint
update: adjusted commitlint rules to bypass failing release pipeline
2 parents 67fa2f3 + af0bf41 commit 0e25fb5

File tree

4 files changed

+738
-303
lines changed

4 files changed

+738
-303
lines changed

.cz-config.cjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
types: [
3+
{ value: 'update', name: '✨ update' },
4+
{ value: 'fix', name: '🐛 fix' },
5+
{ value: 'breaking', name: '🚨 breaking' },
6+
{ value: 'new', name: '📦 new' },
7+
{ value: 'docs', name: '📝 docs' },
8+
{ value: 'chore', name: '🚚 chore' },
9+
],
10+
messages: {
11+
type: "Select the type of change that you're committing:",
12+
customScope: 'Denote the SCOPE of this change (optional):',
13+
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
14+
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
15+
breaking: 'List any BREAKING CHANGES (optional):\n',
16+
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
17+
confirmCommit:
18+
'Are you sure you want to proceed with the commit above?',
19+
},
20+
allowCustomScopes: true,
21+
allowBreakingChanges: ['update', 'fix', 'breaking', 'new'],
22+
breaklineChar: '|',
23+
skipQuestions: ['scope'],
24+
subjectLimit: 500,
25+
};

commitlint.config.cjs

Lines changed: 11 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
module.exports = {
2+
extends: ['eslint'],
23
rules: {
3-
'body-leading-blank': [1, 'always'],
4-
'body-max-line-length': [2, 'always', 100],
5-
'footer-leading-blank': [1, 'always'],
6-
'footer-max-line-length': [2, 'always', 100],
7-
'header-max-length': [2, 'always', 100],
4+
'body-max-length': [0, 'always'],
5+
'body-max-line-length': [0, 'always'],
6+
'footer-max-length': [0, 'always'],
7+
'footer-max-line-length': [0, 'always'],
8+
'header-max-length': [0, 'always'],
9+
'scope-max-length': [0, 'always'],
10+
'subject-max-length': [0, 'always'],
11+
'type-max-length': [0, 'always'],
12+
'footer-leading-blank': [0, 'always'],
813
'subject-case': [
914
2,
1015
'never',
1116
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
1217
],
1318
'subject-empty': [2, 'never'],
14-
'subject-full-stop': [2, 'never', '.'],
19+
'subject-full-stop': [0, 'never', '.'],
1520
'type-case': [2, 'always', 'lower-case'],
1621
'type-empty': [2, 'never'],
1722
'type-enum': [
@@ -20,85 +25,4 @@ module.exports = {
2025
['breaking', 'fix', 'update', 'new', 'docs', 'chore'],
2126
],
2227
},
23-
prompt: {
24-
settings: {},
25-
messages: {
26-
skip: ':skip',
27-
max: 'upper %d chars',
28-
min: '%d chars at least',
29-
emptyWarning: 'can not be empty',
30-
upperLimitWarning: 'over limit',
31-
lowerLimitWarning: 'below limit',
32-
},
33-
questions: {
34-
type: {
35-
description: "Select the type of change that you're committing",
36-
enum: {
37-
update: {
38-
description: 'An Update',
39-
title: 'update',
40-
emoji: '✨',
41-
},
42-
fix: {
43-
description: 'A bug fix',
44-
title: 'fix',
45-
emoji: '🐛',
46-
},
47-
docs: {
48-
description: 'Documentation only changes',
49-
title: 'docs',
50-
emoji: '📚',
51-
},
52-
breaking: {
53-
description: 'A Major change',
54-
title: 'breaking',
55-
emoji: '🚨',
56-
},
57-
new: {
58-
description: 'A new Feature',
59-
title: 'new',
60-
emoji: '📦',
61-
},
62-
chore: {
63-
description:
64-
"Other changes that don't modify src or test files",
65-
title: 'Chores',
66-
emoji: '♻️',
67-
},
68-
},
69-
},
70-
scope: {
71-
description:
72-
'What is the scope of this change (e.g. component or file name)',
73-
},
74-
subject: {
75-
description:
76-
'Write a short, imperative tense description of the change',
77-
},
78-
body: {
79-
description: 'Provide a longer description of the change',
80-
},
81-
isBreaking: {
82-
description: 'Are there any breaking changes?',
83-
},
84-
breakingBody: {
85-
description:
86-
'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself',
87-
},
88-
breaking: {
89-
description: 'Describe the breaking changes',
90-
},
91-
isIssueAffected: {
92-
description: 'Does this change affect any open issues?',
93-
},
94-
issuesBody: {
95-
description:
96-
'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself',
97-
},
98-
issues: {
99-
description:
100-
'Add issue references (e.g. "fix #123", "re #123".)',
101-
},
102-
},
103-
},
10428
};

0 commit comments

Comments
 (0)