accepted characters for type and scope #87

Closed
opened 2026-02-17 11:44:15 -06:00 by GiteaMirror · 12 comments
Owner

Originally created by @hdevalke on GitHub (Nov 27, 2019).

This is the definition of type and scope:

consists of a noun

It is unclear to me what are the allowed characters of a noun. Is it limited to ascii word characters, can it have numbers, underscores, dashes?

Originally created by @hdevalke on GitHub (Nov 27, 2019). This is the definition of type and scope: > consists of a noun It is unclear to me what are the allowed characters of a noun. Is it limited to ascii word characters, can it have numbers, underscores, dashes?
Author
Owner

@tunnckoCore commented on GitHub (Nov 28, 2019):

Good point. I guess everything is allowed. It can be seen that some add the package name in the scope like fix(@scope/pkg-name): foo bar, so..

In javascript land, it's probably easy to assume that what's supported as pkg.name that's supported as scope.

But yea, good question, I'm wondering almost every time, haha.

@tunnckoCore commented on GitHub (Nov 28, 2019): Good point. I guess everything is allowed. It can be seen that some add the package name in the scope like `fix(@scope/pkg-name): foo bar`, so.. In javascript land, it's probably easy to assume that what's supported as `pkg.name` that's supported as scope. But yea, good question, I'm wondering almost every time, haha.
Author
Owner

@bcoe commented on GitHub (Nov 29, 2019):

@hdevalke @tunnckoCore what if we use the term identifier rather than noun, and then explicitly define this?

@bcoe commented on GitHub (Nov 29, 2019): @hdevalke @tunnckoCore what if we use the term `identifier` rather than `noun`, and then explicitly define this?
Author
Owner

@hdevalke commented on GitHub (Dec 1, 2019):

@bcoe That would be better indeed. Maybe a formal grammar of conventional commits could be helpful as well, see semver.org.

@hdevalke commented on GitHub (Dec 1, 2019): @bcoe That would be better indeed. Maybe a formal grammar of conventional commits could be helpful as well, see [semver.org](https://semver.org/#backusnaur-form-grammar-for-valid-semver-versions).
Author
Owner

@mainrs commented on GitHub (Jul 27, 2020):

If we're already there: What about any valid unicode character that is not ')'? So for example, Japanese, Korean etc. would work as well. Numbers are included, emoji. It just has to terminate with a ) and does not contain newline characters 🤔

@mainrs commented on GitHub (Jul 27, 2020): If we're already there: What about any valid unicode character that is not ')'? So for example, Japanese, Korean etc. would work as well. Numbers are included, emoji. It just has to terminate with a `)` and does not contain newline characters 🤔
Author
Owner

@damianopetrungaro commented on GitHub (Jul 27, 2020):

Good point @SirWindfield

@damianopetrungaro commented on GitHub (Jul 27, 2020): Good point @SirWindfield
Author
Owner

@mainrs commented on GitHub (Jul 27, 2020):

The same could be applied to the type, however, that does bring up the question: What about fix and feat? Should they be translated into other languages as well? For example, Japanese does normally not use our alphabet letters. How would those languages get handled?

Or would fix, feat be "locked in" into English as they are right now? :)

@mainrs commented on GitHub (Jul 27, 2020): The same could be applied to the type, however, that does bring up the question: What about `fix` and `feat`? Should they be translated into other languages as well? For example, Japanese does normally not use our alphabet letters. How would those languages get handled? Or would `fix`, `feat` be "locked in" into English as they are right now? :)
Author
Owner

@tunnckoCore commented on GitHub (Jul 28, 2020):

@SirWindfield yea, I think that they definitely should be locked. I see CC as conventional standard, not a framework. The difference is that in "conventional standard", there're some locked things and terms, and rules, a convention. If you look at it as "framework" it just draws some frame and suggestions and allows interpretation (in this case allowing type/scope/desc to be in a different language). It's... thin difference and I may not be able to explain it well but it's there.

The beauty in the software industry is that English is THE language and everyone can understand it, or at least should at a basic level, not to mention the Google Translate which is quite good these days. And... in this global world, almost everyone knows at least 2 or 3 languages.

Another strong point against such transliteration is that if we allow it, it will be harder for other non-japanese (or Korean, or... other) people to understand what's happening. If we don't, at least, we will know is it a fix or what.

@tunnckoCore commented on GitHub (Jul 28, 2020): @SirWindfield yea, I think that they definitely should be locked. I see CC as _conventional standard_, not _a framework_. The difference is that in "conventional standard", there're some locked things and terms, and rules, a convention. If you look at it as "framework" it just draws some frame and suggestions and allows _interpretation_ (in this case allowing type/scope/desc to be in a different language). It's... thin difference and I may not be able to explain it well but it's there. The beauty in the software industry is that English is THE language and everyone can understand it, or at least should at a basic level, not to mention the Google Translate which is quite good these days. And... in this global world, almost everyone knows at least 2 or 3 languages. Another strong point against such transliteration is that if we allow it, it will be harder for other non-japanese (or Korean, or... other) people to understand what's happening. If we don't, at least, we will know is it a fix or what.
Author
Owner

@mainrs commented on GitHub (Jul 28, 2020):

Good points @tunnckoCore!

I do agree on the lock, I just wanted to gather other opinions :) That being said, is there some RFC process involved for making changes to the specification (or maybe something like "extensions"). The "unicode" extension for example 🤷 :D

@mainrs commented on GitHub (Jul 28, 2020): Good points @tunnckoCore! I do agree on the lock, I just wanted to gather other opinions :) That being said, is there some RFC process involved for making changes to the specification (or maybe something like "extensions"). The "unicode" extension for example 🤷 :D
Author
Owner

@tunnckoCore commented on GitHub (Jul 28, 2020):

I think there's no RFC process, but we are commenting/voting/sharing our thoughts on the issues and PRs, plus the other members have a higher view on the community users even outside the JavaScript.

@tunnckoCore commented on GitHub (Jul 28, 2020): I think there's no RFC process, but we are commenting/voting/sharing our thoughts on the issues and PRs, plus the other members have a higher view on the community users even outside the JavaScript.
Author
Owner

@vlad0337187 commented on GitHub (Sep 23, 2020):

Hello.

  1. Are points allowed as scope identifiers right now ?
    like:
    feat(users.seeds): add admins

  2. Can word feature be used instead of feat ?
    (according to clause 14 of specification, types other than feat and fix MAY be used in your commit messages, e.g., docs: updated ref docs. Also I see issue about feature, but I'd like to know, is feature allowed right now, or current standard discourages such word)

Thanks.

@vlad0337187 commented on GitHub (Sep 23, 2020): Hello. 1. Are points allowed as scope identifiers right now ? like: `feat(users.seeds): add admins` 2. Can word `feature` be used instead of `feat` ? (according to [clause 14 of specification](https://www.conventionalcommits.org/en/v1.0.0/#specification), types other than feat and fix MAY be used in your commit messages, e.g., docs: updated ref docs. Also I see [issue about feature](https://github.com/conventional-commits/conventionalcommits.org/issues/200), but I'd like to know, is `feature` allowed right now, or current standard discourages such word) Thanks.
Author
Owner

@damianopetrungaro commented on GitHub (Sep 24, 2020):

  1. YUP! I do it often :)
  2. YUP! If you do like more verbose names

Il mer 23 set 2020, 21:42 Vladislav notifications@github.com ha scritto:

Hello.

Are points allowed as scope identifiers right now ?
like:
`feat(users.seeds): add admins"
2.

Can word feature be used instead of feat ?
(according to clause 14 of specification
https://www.conventionalcommits.org/en/v1.0.0/#specification, types
other than feat and fix MAY be used in your commit messages, e.g., docs:
updated ref docs. )

Thanks.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/conventional-commits/conventionalcommits.org/issues/223#issuecomment-697932408,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEJFZ2ASPOAOFJK6FKHF2LSHJFSNANCNFSM4JSJPSPQ
.

@damianopetrungaro commented on GitHub (Sep 24, 2020): 1) YUP! I do it often :) 1) YUP! If you do like more verbose names Il mer 23 set 2020, 21:42 Vladislav <notifications@github.com> ha scritto: > Hello. > > 1. > > Are points allowed as scope identifiers right now ? > like: > `feat(users.seeds): add admins" > 2. > > Can word feature be used instead of feat ? > (according to clause 14 of specification > <https://www.conventionalcommits.org/en/v1.0.0/#specification>, types > other than feat and fix MAY be used in your commit messages, e.g., docs: > updated ref docs. ) > > Thanks. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/conventional-commits/conventionalcommits.org/issues/223#issuecomment-697932408>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ACEJFZ2ASPOAOFJK6FKHF2LSHJFSNANCNFSM4JSJPSPQ> > . >
Author
Owner

@bcoe commented on GitHub (Dec 24, 2020):

👋 we've been pulling together a formal grammar for Conventional Commits:

https://github.com/conventional-commits/parser#the-grammar

This grammar defines tokens explicitly, as unicode characters with some exceptional tokens depending on context (e.g., : and ( in the header).

Let's move conversation to the parser repo.

@bcoe commented on GitHub (Dec 24, 2020): :wave: we've been pulling together a formal grammar for Conventional Commits: https://github.com/conventional-commits/parser#the-grammar This grammar defines tokens explicitly, as unicode characters with some exceptional tokens depending on context (e.g., `:` and `(` in the header). Let's move conversation to the parser repo.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/conventionalcommits.org#87