New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Conventional commits do not respect '!' or "BREAKING CHANGE" #2668
Comments
Bump |
The default settings uses conventional-changelog-angular which is not the conventional commits spec, and doesn't support !. It will work if you add Also in your repro, you're explicitly specifying the bump as |
This can also be specified in i.e.
|
I'm seeing the same issue with lerna 3.2 and v4. Adding
has no effect. |
how do we get major version bump to work? I am using v4 and I tried with commit messages have both
and I use |
If your package is in major version zero (eg. Therefore, a breaking change in a package that is in 0.x.y, will only bump x. I wish this was better documented, but it's in the npm docs:
Requested for improved documentation around this here. |
I also can't get |
Provide your lerna configuration and the |
lerna.json
I don't think there's anything of relevance in package.json |
Maybe. Sometimes, the bug is in the places you least suspect (which is why you don't find it 😅). In this case, I was curious what the version of your subpackage is. But seems youre not using independent mode. Can you provide the commit message you used to try to trigger the breaking change? |
I tried a few things and finally got the major version bump 😂. Doing an empty commit (
Putting What finally worked is we reworded a recent commit to a file inside one of the packages to include |
@richardkazuomiller your comment really help me. I was trying to get a major bump with a commit on a shared folder for all packages. As soon I did a silly change with a commit inside a package it recognized as a major change. Commit: (We do not want the Angular preset, to be able to use the This has been the ONLY way I have been able to get a Major bump. I have been struggling with this for hours. |
@qrosmeli That's great! I'm glad I could help 😸 |
@privatenumber OH MY @£$@$ this has been driving me mad! Thanks so much for sharing this information!! |
And how do I get out of |
Thank you so much @qrosmeli and @richardkazuomiller . Passing |
I managed to make it work! TL;DR: I managed to resolve that using breaking change footer convention in the commit message:
As you can also see here: https://www.conventionalcommits.org/en/v1.0.0/#specification |
Didn't work for me 🤔 even with a commit message of
Just ended up manually doing a major release to 1.0.0 via |
Lerna conventional commits do not respect '!' as denoting a breaking change when part of the 'types' on a conventional commit. Additionally, It seems like including the '!' may make lerna not recognize that commit as a valid conventional commit in some cases. This repo also highlights this problem.
EDIT: Looks like “BREAKING CHANGE:” is also not being respected.
Repro repo:
https://github.com/alexforsyth/lerna-conventional-commits
Expected Behavior
The generated changelog should list breaking changes, when a '!' is included on a type.
ex. 2 from conventional commits
Should be equal to using the
BREAKING CHANGE:
phrase in the footer.Current Behavior
The generated changelog does not include the change when '!' is included on a type.
ex.
Possible Solution
Steps to Reproduce (for bugs)
This repo is a live example that highlights this problem.
The text was updated successfully, but these errors were encountered: