-
Notifications
You must be signed in to change notification settings - Fork 909
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
Custom error message if commit format is wrong. #3165
Comments
I understand your usecase. I feel like people will always be surprised the first time they run into certain tools, i.e. commitlint, eslint, etc. Hard to find a technical feature solution for alle these cases. Maybe adjusting the What do you think? |
Sure I can add it to the documentation... just wanted to make it a little bit more obvious. :) |
Do you know any tools which have this kind of feature? Would you be able to provide a PR? Maybe there is chance to think about it. |
Sorry, no idea. |
One which would modify the error if commitlint is being used for the first time? Or a general one? |
Yeah, if we can check if commitlint is installed it should show the error. |
Is it still unresolved ? They give 0 information, which is not correct. |
Any updates on whether or not this will be implemented? And if it will, any idea when?
Would be better for it to be something like:
|
'use strict';
|
I believe this may helpful: https://gist.github.com/harithzainudin/a99b25c04d099e4f6c08c21927ef9319 |
The idea is pretty simple. If someone commits the first time to a new repo with commitlint the most common error is that the commitmsg was wrong. In our case we have a
npm run commit
that triggers the cz-cli. So I would like to add a custom error message for this case that the programmer can usenpm commit
.Thanks!
The text was updated successfully, but these errors were encountered: