Parenthesized optional scope in commit message structure #174

Closed
opened 2026-02-17 11:51:33 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @MartinSandeCosta on GitHub (May 10, 2023).

Commit message should be structured as per doc:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

While these brackets are correctly indicating that said scope is to be optionally included, the specification is missing the mandatory parentheses that should surround the scope (if it exists). Maybe it can be included as:

<type>[(optional scope)]: <description>

[optional body]

[optional footer(s)]
Originally created by @MartinSandeCosta on GitHub (May 10, 2023). Commit message should be structured as per [doc](https://github.com/conventional-commits/conventionalcommits.org/blob/master/content/v1.0.0/index.md#summary): ``` <type>[optional scope]: <description> [optional body] [optional footer(s)] ``` While these brackets are correctly indicating that said scope is to be optionally included, the specification is missing the mandatory parentheses that should surround the scope (if it exists). Maybe it can be included as: ``` <type>[(optional scope)]: <description> [optional body] [optional footer(s)] ```
Author
Owner

@mentalisttraceur commented on GitHub (Aug 26, 2023):

Duplicate with #473 (that one does not have a name that makes it obvious what it's about)

@mentalisttraceur commented on GitHub (Aug 26, 2023): Duplicate with #473 (that one does not have a name that makes it obvious what it's about)
Author
Owner

@MartinSandeCosta commented on GitHub (Sep 1, 2023):

Duplicated by #473

@MartinSandeCosta commented on GitHub (Sep 1, 2023): Duplicated by #473
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/conventionalcommits.org#174