Skip to content

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

Closed
escapedcat wants to merge 4 commits intoconventional-changelog:masterfrom
escapedcat:feat/51_check-stage-before-entering-prompt
Closed

feat(prompt-cli): check stage before prompt #51#461
escapedcat wants to merge 4 commits intoconventional-changelog:masterfrom
escapedcat:feat/51_check-stage-before-entering-prompt

Conversation

@escapedcat
Copy link
Copy Markdown
Member

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

const execa = require('execa');
const meow = require('meow');
const prompter = require('@commitlint/prompt').prompter;
const {prompter} = require('@commitlint/prompt');
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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