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

feat(prompt-cli): check stage before prompt #51 #461

Conversation

escapedcat
Copy link
Member

@marionebl i just added exactlty you code. not sure if there's more to do. tests? nicer syntax?

@@ -1,7 +1,7 @@
#!/usr/bin/env node
const execa = require('execa');
const meow = require('meow');
const prompter = require('@commitlint/prompt').prompter;
const {prompter} = require('@commitlint/prompt');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is due to linting

@byCedric
Copy link
Member

I guess adding tests can't hurt anyone 😄 Can you add them too, or do you need some help with that?

@escapedcat
Copy link
Member Author

@byCedric sorry, saw your reply way too late. Added a basic test. Please have a look and let me know if that's ok. I'm still in the phase of getting to know the project a bit better and how to deal with the setup.
I'll take care of the conflicts after your feedback.

@marionebl
Copy link
Contributor

marionebl commented Nov 25, 2018

I went ahead and added the two missing deps causing the lint in prompt-cli to fail:

https://github.com/marionebl/commitlint/pull/495

The PR looks very good, thanks! Will merge via the follow up when CI yields green.

@marionebl marionebl closed this Nov 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants