mirror of
https://github.com/conventional-commits/conventionalcommits.org.git
synced 2026-03-23 06:01:43 -05:00
How do you do multi-line breaking changes? #114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rodoabad on GitHub (Nov 10, 2020).
I have this example.
BREAKING CHANGE: You no longer have to use
alertTitleandchildrento display your alert content. Usechildrenonly instead. This is because we found out that people actually display the "content" of the alert inalertTitleand not in bothalertTitleandchildren(description). Because of that, we're consolidating both. This also opens up opportunities to have other components used within an alert component like an accordion for Progressive Disclosure design patterns.I want the diff to also be added when creating release notes but it only adds whatever is added right after the
BREAKING CHANGE:keyword.@djgilcrease commented on GitHub (Nov 11, 2020):
This very much depends on the parser you are using and not the spec itself, so you should likely file an issue on the parser/tool you are using.
I have a golang parser which I added this example as a test case to so that it will support
No Extra Line Breaks after the BREAKING CHANGEhttps://gitlab.com/digitalxero/go-conventional-commit/-/blob/master/conventional_commits_test.go#L228
Extra Line Breaks after the BREAKING CHANGEhttps://gitlab.com/digitalxero/go-conventional-commit/-/blob/master/conventional_commits_test.go#L258
@mainrs commented on GitHub (Feb 2, 2021):
The specification sounds more like
BREAKING CHANGEis a special footer:So in that case it would behave the same as every other footer, newline + footer identifier to separate them.