mirror of
https://github.com/conventional-commits/conventionalcommits.org.git
synced 2026-03-22 21:24:02 -05:00
Where shuould the exclamation mark go if there's a scope? #67
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 @woile on GitHub (Apr 17, 2019).
Hello folks, I have 2 questions regarding
!.I was wondering first, how should it be used when there's a scope?
feat(users)!: new user interfaceor
feat!(users): new user interface!be mandatory? This would have 2 benefits:BREAKING CHANGEor not.Cheers, looking to hear your feedback! I really like it!
@bcoe commented on GitHub (Apr 17, 2019):
here's why I would hate for the
!to be mandatory:☝️
!is a special character inbash, and I would find it annoying to have to escape it or remember to use single quotes every time I make a breaking change -- I think this introduces friction for users.I do think we might be able to make the
BREAKING CHANGEoptional, if a user uses a!.As for where to place the
!it should be immediately before the:whether or not you're using a scope 👍@bcoe commented on GitHub (Apr 17, 2019):
two more thoughts:
perhaps requiring one or the other (or allowing both) would help reduce friction?
!ends up being a shorthand for BREAKING CHANGE, when the description portion of the commit message is enough to describe the breaking change.Even though I quite like the
!, should we consider using another character that isn't a special character inbash.@woile commented on GitHub (Apr 18, 2019):
Wow, great feedback, agreed on all the items. Thanks! I don't which one could be used, maybe
&?Something to keep in mind with symbols is that it becomes less clear for someone who doesn't know the conventions. And then more symbols might be added to the convention, becoming really hard to decipher for people.
@damianopetrungaro commented on GitHub (Jul 4, 2019):
@Woile feel free to open it again if you have other question :D
@locaIhost commented on GitHub (Jun 28, 2023):
I can't find an answer, did you eventually come to an agreement? It's just that I ran into this problem today, too. 😺
@jmewes commented on GitHub (Jul 1, 2023):
Using single quotes for the commit message doesn't cause the error.