Skip to content

Commit Scope may not contain dots #139

@ddluke

Description

@ddluke

Attempting to create a commit like feat(foo.bar): something currently makes conventional-pre-commit fail, raising an error as such:

[Bad commit message] >> feat(foo.bar): something
Your commit message does not follow Conventional Commits formatting
https://www.conventionalcommits.org/

Conventional Commit messages follow a pattern like:

    type(scope): subject

    extended body

Please correct the following errors:

  - Expected value for delim but found none.
  - Expected value for subject but found none.
  - Expected value for body but found none.

Run:

    git commit --edit --file=.git/COMMIT_EDITMSG

to edit the commit message and retry the commit.

IMHO, the https://www.conventionalcommits.org/en/v1.0.0/ doesn't state that dots must not be used inside the scope. To me, this feels like a bug in conventional-pre-commit 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions