@mrshmllw/campfire 2.3.3 → 2.3.4-crumbs-feature-testing-breaking-change-regexp.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { RuleConfigSeverity } from '@commitlint/types';
|
|
2
2
|
export const config = {
|
|
3
3
|
parserPreset: 'conventional-changelog-conventionalcommits',
|
|
4
|
-
ignores: [
|
|
4
|
+
ignores: [
|
|
5
|
+
// Allow breaking changes in subject line with all case and format variations:
|
|
6
|
+
// - BREAKING CHANGE:, breaking change:, Breaking Change:, etc.
|
|
7
|
+
// - BREAKING-CHANGE:, breaking-change:, Breaking-Change:, etc.
|
|
8
|
+
// - BREAKING CHANGES:, breaking changes:, Breaking Changes:, etc.
|
|
9
|
+
// - BREAKING-CHANGES:, breaking-changes:, Breaking-Changes:, etc.
|
|
10
|
+
(commit) => /^breaking[\s-]change(?:s)?:/i.test(commit),
|
|
11
|
+
],
|
|
5
12
|
rules: {
|
|
6
13
|
'type-case': [RuleConfigSeverity.Error, 'always', 'lower-case'],
|
|
7
14
|
'type-empty': [RuleConfigSeverity.Error, 'never'],
|
|
@@ -54,8 +54,45 @@ const config = {
|
|
|
54
54
|
'@semantic-release/commit-analyzer',
|
|
55
55
|
{
|
|
56
56
|
preset: 'angular',
|
|
57
|
+
parserOpts: {
|
|
58
|
+
// Allow breaking changes to be detected in header/subject, not just footer
|
|
59
|
+
headerPattern: /^(breaking[\s-]change(?:s)?|.*?)(\(.*\))?:?\s(.*)$/i,
|
|
60
|
+
headerCorrespondence: ['type', 'scope', 'subject'],
|
|
61
|
+
noteKeywords: [
|
|
62
|
+
'BREAKING CHANGE',
|
|
63
|
+
'BREAKING-CHANGE',
|
|
64
|
+
'BREAKING CHANGES',
|
|
65
|
+
'BREAKING-CHANGES',
|
|
66
|
+
'Breaking Change',
|
|
67
|
+
'Breaking-Change',
|
|
68
|
+
'Breaking Changes',
|
|
69
|
+
'Breaking-Changes',
|
|
70
|
+
'breaking change',
|
|
71
|
+
'breaking-change',
|
|
72
|
+
'breaking changes',
|
|
73
|
+
'breaking-changes',
|
|
74
|
+
],
|
|
75
|
+
},
|
|
57
76
|
releaseRules: [
|
|
58
77
|
{ breaking: true, release: 'major' },
|
|
78
|
+
// Match breaking changes in various commit fields (case-insensitive)
|
|
79
|
+
// Matches: "BREAKING CHANGE:", "breaking change:", "BREAKING-CHANGE:", etc.
|
|
80
|
+
{
|
|
81
|
+
header: /^breaking[\s-]change(?:s)?:/i,
|
|
82
|
+
release: 'major',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
subject: /^breaking[\s-]change(?:s)?:/i,
|
|
86
|
+
release: 'major',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
message: /^breaking[\s-]change(?:s)?:/i,
|
|
90
|
+
release: 'major',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: /^breaking[\s-]change(?:s)?$/i,
|
|
94
|
+
release: 'major',
|
|
95
|
+
},
|
|
59
96
|
{ type: 'feat', release: 'minor' },
|
|
60
97
|
{ type: 'fix', release: 'patch' },
|
|
61
98
|
{ type: 'docs', release: 'patch' },
|
|
@@ -68,14 +105,6 @@ const config = {
|
|
|
68
105
|
{ type: 'revert', release: 'patch' },
|
|
69
106
|
{ type: 'chore', release: 'patch' },
|
|
70
107
|
],
|
|
71
|
-
parserOpts: {
|
|
72
|
-
noteKeywords: [
|
|
73
|
-
'BREAKING CHANGE',
|
|
74
|
-
'BREAKING-CHANGE',
|
|
75
|
-
'BREAKING CHANGES',
|
|
76
|
-
'BREAKING-CHANGES',
|
|
77
|
-
],
|
|
78
|
-
},
|
|
79
108
|
},
|
|
80
109
|
],
|
|
81
110
|
[
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrshmllw/campfire",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4-crumbs-feature-testing-breaking-change-regexp.2",
|
|
4
4
|
"description": "Collection of toasty utils and configs used by Marshmallow Technology",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|