Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Commit e0abe28

Browse files
committed
ci!: edit semantic release config
remove parserOpts to see if breaking change commit will increment the major version BREAKING CHANGE: just a test
1 parent 6192a9d commit e0abe28

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed

.husky/prepare-commit-msg

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
// hook that validates that a 'BREAKING CHANGE' commit message contains an exclamation mark (!) in
44
// its subject (just after the commit type(scope))
55

6-
// const fs = require('fs');
6+
const fs = require('fs');
77

8-
// const message = fs.readFileSync(process.argv[2], 'utf8').trim();
8+
const message = fs.readFileSync(process.argv[2], 'utf8').trim();
99

10-
// if (!message.includes('BREAKING CHANGE') || message.includes('chore(release)')) {
11-
// process.exit(0);
12-
// }
10+
if (!message.includes('BREAKING CHANGE') || message.includes('chore(release)')) {
11+
process.exit(0);
12+
}
1313

14-
// const commitMsgSplitted = message.split('\n');
15-
// const commitSubject = commitMsgSplitted[0];
14+
const commitMsgSplitted = message.split('\n');
15+
const commitSubject = commitMsgSplitted[0];
1616

17-
// // use the following when MGW-540 is done
18-
// // const commitEmojiAndTypeRegex = /^:[A-Za-z]*: [A-Za-z()]*!:/g;
19-
// // const commitEmojiAndType = commitSubject.match(commitEmojiAndTypeRegex);
17+
// use the following when MGW-540 is done
18+
// const commitEmojiAndTypeRegex = /^:[A-Za-z]*: [A-Za-z()]*!:/g;
19+
// const commitEmojiAndType = commitSubject.match(commitEmojiAndTypeRegex);
2020

21-
// const commitTypeRegex = /^[A-Za-z()]*!:/g;
22-
// const commitType = commitSubject.match(commitTypeRegex);
21+
const commitTypeRegex = /^[A-Za-z()]*!:/g;
22+
const commitType = commitSubject.match(commitTypeRegex);
2323

24-
// // if (!commitEmojiAndType || commitEmojiAndType.length === 0) { use the following when MGW-540 is done
25-
// if (!commitType || commitType.length === 0) {
26-
// console.log(
27-
// "❌ Wrong commit format for a BREAKING CHANGE. Please add an exclamation mark '!' just after your commit type(scope).\nFor example: :sparkles: feat(ui)!: new component"
28-
// );
24+
// if (!commitEmojiAndType || commitEmojiAndType.length === 0) { use the following when MGW-540 is done
25+
if (!commitType || commitType.length === 0) {
26+
console.log(
27+
"❌ Wrong commit format for a BREAKING CHANGE. Please add an exclamation mark '!' just after your commit type(scope).\nFor example: :sparkles: feat(ui)!: new component"
28+
);
2929

30-
// process.exit(1);
31-
// }
30+
process.exit(1);
31+
}
3232

33-
// process.exit(0);
33+
process.exit(0);

release.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ module.exports = {
4343
release: 'patch',
4444
},
4545
],
46-
parserOpts: {
47-
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'],
48-
},
4946
},
5047
],
5148
[

0 commit comments

Comments
 (0)