mirror of
https://github.com/conventional-commits/conventionalcommits.org.git
synced 2026-03-22 12:44:37 -05:00
Question: Valid scope clarification #155
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 @DeveloperC286 on GitHub (Sep 26, 2022).
Hey,
I am the maintainer of a Conventional Commits linter that is still in development[1] and I have a question around valid scopes.
I read the full specification[2] and for scopes it says.
To me as it says
nounonly alphanumeric characters and hyphens(for hyphenated nouns) are allowed, no other whitespace/characters are allowed.Examples such as
fix(a b): 123fix(a_b): 123etc would not be valid Conventional Commits?
Can I please get some clarity around this, thank you!
@DeveloperC286 commented on GitHub (Oct 21, 2022):
Bump.
@DeveloperC286 commented on GitHub (Jan 17, 2023):
Bump.
@damianopetrungaro commented on GitHub (Jan 17, 2023):
Hey, sorry for the delay!
Both are technically invalid yes, those MUST be a noun, in general I suggest you to keep this a bit flexible as each team could allow underscores or verbs for example, it depends how strict you want to be with your tool :)
@ozyx commented on GitHub (Apr 24, 2025):
Hi there, sorry about the thread necromancy. Question:
What about in the case of linking JIRA tickets for traceability? Are those best included in the body or footer? Having something like
fix(JIRA-174): Lorem Ipsum...makes it easier to see at a glance which ticket was primarily addressed in a particular commit.Do you think that the specification that the scope "must be a noun" is too restrictive in this regard? It would be great to have an example on the spec of including JIRA links for traceability and which section those would be best to be included.
@bcoe commented on GitHub (May 2, 2025):
@ozyx a Jira ticket seems like a thing to me, I think this is a perfectly reasonable use of scope.
The spec is meant to be flexible, you should use it in a way that works well for your team, and just make sure that you document internally.