conventional-commits / conventionalcommits.org

The conventional commits specification

Home Page:https://conventionalcommits.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parenthesized optional scope in commit message structure

MartinSandeCosta opened this issue · comments

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)]