-
Notifications
You must be signed in to change notification settings - Fork 556
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
Breaking change description #535
Comments
I suppose this also raises a question of whether a commit is allowed to express multiple breaking changes and, if so, how the list would be extracted from the commit. If a commit is not allowed to express multiple breaking changes In this case I think @epage has the right idea. The
It might be worth explicitly stating the semantics of the If a commit is allowed to express multiple breaking changes In this case the same question about the semantics of the edit: grammar |
On a personal, practical note, I frequently run into this case. |
Yea I'm kind of torn now... I 100% agree that the scenario you describe has to be supported but I think the
If they mean the same thing the If they don't mean the same thing then the semantics of the spec's features are a bit more consistent but you need to look at the whole commit message, or rely on tooling, to quickly identity breaking changes. Technically I guess you "need" to do that anyway if you don't control the commit messages but individual projects could require a |
I always saw |
FWIW the reference implementation uses the last indication of a breaking change for the changelog notes which would agree with @epage's interpretation.
|
|
This sounds 100% right to me.
It's not necessarily a contradiction or a problem if the semantics of
If the description following a The practical tradeoff seems to be that the conditional semantic allows the subject line to signal that there is a breaking change in the commit without requiring the description therein to describe the breaking change while the unconditional semantic allows for a breaking change in a subject description in a commit with other breaking changes. E.g.
Here, the conditional semantic allows us to use
Here, the unconditional semantic allows us to use the subject line to express the primary change as a breaking change and to add another breaking change description in the footer. The conditional semantic would require us to repeat the description from the subject line in another footer if we wanted both descriptions to appear as breaking changes. I suppose the tradeoff could be avoided by using the conditional semantic for |
A straight reading of this makes it sound like that if
!
is used, the commit description describes the breaking change, regardless of whether BREAKING CHANGE is present. This seems odd to me that we'd be throwing out the more specific BREAKING CHANGE description in favor of a description that may not be relevant (since!
is also meant to help draw attention to a breaking change).Is that straight reading correct or was the following intended
The text was updated successfully, but these errors were encountered: