File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,11 +27,16 @@ const TRACKED_PATHS = [
2727 "packages/shared" ,
2828] ;
2929
30- // Conventional Commits breaking-change markers:
31- // 1. `type!:` or `type(scope)!:` in the subject line
32- // 2. `BREAKING CHANGE:` or `BREAKING-CHANGE:` footer line
30+ // Matches what `conventional-changelog-conventionalcommits` (used by
31+ // release-it) treats as a major-bumping breaking change. Verified against
32+ // the live parser; covers:
33+ // - Subject `type!:` / `type(scope)!:` (case-insensitive)
34+ // - Footer line `BREAKING CHANGE` or `BREAKING-CHANGE`, with optional
35+ // leading whitespace, optional colon, case-insensitive
36+ // Excludes the plural `BREAKING CHANGES` (parser does NOT treat it as
37+ // breaking — `\b(?!S)` enforces this) and mid-line / list-item occurrences.
3338const BREAKING_PATTERN =
34- / ^ ( f e a t | f i x | c h o r e | r e f a c t o r | p e r f | b u i l d | c i | d o c s | s t y l e | t e s t | r e v e r t ) ( \( [ ^ ) ] + \) ) ? ! : | ^ B R E A K I N G [ - ] C H A N G E : / m ;
39+ / ^ ( f e a t | f i x | c h o r e | r e f a c t o r | p e r f | b u i l d | c i | d o c s | s t y l e | t e s t | r e v e r t ) ( \( [ ^ ) ] + \) ) ? ! : | ^ \s * B R E A K I N G [ - ] C H A N G E \b (? ! S ) / im ;
3540
3641function requireEnv ( name : string ) : string {
3742 const value = process . env [ name ] ;
You can’t perform that action at this time.
0 commit comments