Skip to content

Print the available scopes when it's not in the list #124

@IlyesSemlali

Description

@IlyesSemlali

In output of this pre-commit hook, we only see that the convention is not followed properly:

Your commit message does not follow Conventional Commits formatting
https://www.conventionalcommits.org/

Use the --verbose arg for more information

It would be even more helpful if we could have a dedicated error in the output when the hook fails du to invalid scope. The output could be:

The scope <scope> isn't defined in the supported list of scopes:
<list of supported scopes>

Is that feasible ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions