-
Notifications
You must be signed in to change notification settings - Fork 892
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
prompt-cli: check stage before entering prompt #51
Comments
I've run into this issue a couple times now, and would love to see the CLI fail early here. |
escapedcat
added a commit
to escapedcat/commitlint
that referenced
this issue
Oct 5, 2018
escapedcat
added a commit
to escapedcat/commitlint
that referenced
this issue
Nov 8, 2018
marionebl
added a commit
that referenced
this issue
Nov 25, 2018
Landed in master via #495 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@commitlint/prompt-cli
fails for empty git stages after authoring the commit message. This makes for a frustrating experience.Check if there are files in stage before entering the prompt.
Edit
The implementation for this should happen before this line: @commitlint/prompt-cli/cli.js#L21
main
could look like this:The text was updated successfully, but these errors were encountered: