Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve captainhook validation error message #55

Open
aprat84 opened this issue Jul 4, 2022 · 1 comment
Open

Improve captainhook validation error message #55

aprat84 opened this issue Jul 4, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@aprat84
Copy link

aprat84 commented Jul 4, 2022

Right now, all errors are the same:

 [ERROR] Invalid Commit Message                                                 
         The commit message is not properly formatted according to the          
         Conventional Commits specification. For more details, see              
         https://www.conventionalcommits.org/en/v1.0.0/

It would be nice to echo the parser error, so we have a hint of what we did wrong. Example:

 [ERROR] Invalid Commit Message: 'asdf' is not one of the valid types 'feat, fix, refactor, ...'
         The commit message is not properly formatted according to the          
         Conventional Commits specification. For more details, see              
         https://www.conventionalcommits.org/en/v1.0.0/
@ramsey ramsey added the enhancement New feature or request label Mar 18, 2023
@daCyberpunk
Copy link

Well its not usable for me because of this. If The first error already says nothing, and I just see a huge regex when I am looking into the code, I can leave it. Sorry. It was looking really promising

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants