[FEAT] automatically prepend `BREAKING CHANGE: `
See original GitHub issueIs your feature request related to a problem? Please describe.
While the extension explicitly prompts the user to enter any breaking changes, it expects you to prepend BREAKING CHANGE: manually. In my opinion this is a cumbersome task that should be automated.
Describe the solution you’d like
A possible solution would be to simply prepend BREAKING CHANGE: automatically, if the user writes something when prompted for breaking changes.
Describe alternatives you’ve considered A simpler, but in my opinion inferior, solution would be to no longer ask for a text value for breaking changes. This could be replaced by asking whether or not there were breaking changes and then adding an exclamation mark to the description when there are.
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (9 by maintainers)
Top Results From Across the Web
conventional commit messaging - Conventional Commits
A breaking change can be part of commits of any type. e.g., a fix: , feat: & chore: types would all be valid,...
Read more >Handle breaking change messages · Issue #39 - GitHub
I'm using this tool to generate changelogs for projects that use conventional commits, and it works quite well. One missing piece, however, ...
Read more >Automatically generate and release a changelog using Node.js
For example, one footer is BREAKING CHANGE , which would correlate with MAJOR in ... feat(new-feature): add a new-feature to our project.
Read more >Gitlab CI merge requests: Using Breaking Changes from ...
feat : Refactor the website names BREAKING CHANGE: Website names are changed. Is it possible in gitlab merge requests to either:.
Read more >How To Automatically Generate A Helpful Changelog From ...
A breaking change can be part of commits of any type. e.g., a fix: , feat: & chore: types would all be valid,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hello there, I came across https://www.conventionalcommits.org today and that pointed me to this extension. I like the idea very much.
When I tried out the extension, the behavior of the breaking-change-prompt appeared to me as a bug because it does not seem to follow the specs. Looking to open a bug report, I found this issue, so I will add my two cents here instead.
Firstly, as stated, the current behavior seems like a bug. The reason for that is that the prompt asks me for the breaking changes, not for an additional trailer. That really implies that the extension will take care of the structural requirements connected to breaking changes.
Regarding how this should work, I’d like to propose a different strategy than @vivaxy and @yi-Xu-0100 have discussed so far. The prompt should really have only one non-optional page asking for the description of any breaking change:
enterwithout any content, the commit message will be saved as a non-breaking change, as is the current behavior:!, the commit message will be saved as a breaking change without a description: Note the!:This strategy reduces necessary interaction to a bare minimum:
enter) for a non-breaking commit!,enter) for a simple breaking commitenter) for a breaking commit with a descriptionThe
!for a breaking commit with a description could be optional but should default to adding it because that maximizes visibility as @yi-Xu-0100 explained.Whether to use
BREAKING CHANGE:orBREAKING-CHANGE:should be an option defaulting toBREAKING CHANGE:because that is the main use case in the spec. The way I read the spec,BREAKING-CHANGE:is not an important use-case but really only mentioned in order to allow using the dashed style that the other footer tokens use, probably to facilitate some simpler tools.Regarding not breaking the current behavior, my suggestion is to either accept this as a bug fix or make the whole thing opt-in and mark the current behavior as deprecated and prominently pointing to this improvement. At v2, this really should be the only way.
Looking forward to your feedback on this. @vivaxy thanks for this extension! 🙂
@vivaxy I really don’t know the situation about the
BREAKING-CHANGEas the token in the footer, but I did not want to miss it when I figure out why it exists and want to use it in the future. 😋For the reason that
BREAKING CHANGEhas a low usage frequency, The four options also not bother me, and the configuration with thebothwill not consume more time for general committing. 😀When the pattern is
BREAKING CHANGEorBREAKING-CHANGE, the selection page can be three options. When the pattern is theboth, the selection page can be four options in case of future usage without setting more. 😁