-
Notifications
You must be signed in to change notification settings - Fork 24
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: Seems like BREAKING CHANGE is broken since it doesn't bump a MAJOR version #58
Comments
yep, you're correct. Perhaps what we can do for now is make an explicit allowance for |
Since it seems that the multiple commit feature is broken, doesn't make more sense to rollback it since maybe other parts of the system are broken because of that change as-well? Or is that change big/hard to rollback? |
AFAIK, |
@zachdaniel actually, seems like the parser bug also makes creating releases with commits that have other footers creates a bunch of warnings. For example, this commit:
Will generate the following commits: [
%GitOps.Commit{
type: "feat",
scope: nil,
message: "bla",
body: nil,
footer: nil,
breaking?: false
},
%GitOps.Commit{
type: "TAGS",
scope: nil,
message: "test_git_ops",
body: nil,
footer: nil,
breaking?: false
}
] Which will trigger the following warning when running a release:
Because it will consider My workaround for now is to add this to my config: types: [
tags: [
hidden?: true
]
] I was wondering, do you think it would be hard to fix the parser? |
I don't know if its possible to fix the parser w/o removing the feature of allowing nested commit messages. There is no way to tell the difference between a "footer" and a nested commit. For now we should special case "BREAKING CHANGE" and "TAGS", IMO. After that we can do the opt-in behavior that I mentioned above, and explain in the docs: "you can choose between having arbitrary footers, and allowing nested conventional commits, but not both" |
Do you remember which commit(s) added support for nested commit messages? I was thinking about taking a look at it this weekend and maybe adding the opt-in feature |
I don't recall, would have to hunt it down. Even with the opt-in feature, it will need to make exceptions for |
I think the commit introducing support for nested commit messages is this one 8ee8f98 I assume if it's there is because someone felt the need to have it, but as discussed, it's kinda incompatible with processing message footers like
I also think this is the way forward. @sezaru Did you manage to have a look at this? |
If I got it right, adding a footer with
BREAKING CHANGE: something
should bump the MAJOR version, but it is actually bumping the MINOR version.If I would guess, this is related to the same problem highlighted in the #57 where a single commit is being split into multiple ones. Meaning that a BREAKING CHANGE is actually never inside the
Commit
footer fieldThe text was updated successfully, but these errors were encountered: