Closed Rossiar closed 5 years ago
Hi @Rossiar,
if you want to introduce a new breaking change with a commit, you still need to stick to the Angular Commit Message Conventions. That means that the BREAKING CHANGE
keyword is part of the commit body or footer.
This is how a breaking change commit message should look like:
feat: this new feature changes the API behavior
BREAKING CHANGE: merry christmas
Hi @christophwitzko,
Thanks for clearing up my misunderstanding!
Hi - just wanted some guidance on using
BREAKING CHANGE
as specified in the original project docs: https://github.com/semantic-release/semantic-release/blob/master/README.mdThere doesn't seem to be support for this as currently this line will fail to match a commit message like
BREAKING CHANGE: merry christmas guys
:In the code above
commitPattern
is relying on word characters (\w
) to match before the:
and so it will not match againstBREAKING CHANGE
as` is not a word character, as such the
foundarray will be empty and the
parseCommitfunction will exit early and not assign a
Change` to the commit.I was mainly wondering if this was intentional or not and if you would accept a PR from our fork to resolve this if it is indeed a bug?