-
Notifications
You must be signed in to change notification settings - Fork 113
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
[WIP] git-node: prompt and conditionally auto push #299
Conversation
Codecov Report
@@ Coverage Diff @@
## master #299 +/- ##
=======================================
Coverage 73.94% 73.94%
=======================================
Files 22 22
Lines 1401 1401
=======================================
Hits 1036 1036
Misses 365 365 Continue to review full report at Codecov.
|
I just saw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no tests for most of the git-node landing process, I am afraid..
@@ -9,6 +10,21 @@ const Session = require('./session'); | |||
|
|||
const isWindows = process.platform === 'win32'; | |||
|
|||
function asyncQuestion(prid) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can refactor this a bit into a cli.promptForInput
that returns the answer for later use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So waiting for #300
@targos Maybe open a separate issue about refactoring cli.prompt on top of inquirer ? (like the cli.startSpinner and cli.stopSpinner are on top of ora, but we get to dependency-inject the cli in tests) |
@joyeecheung sure. I thought this PR was blocked on prompt-related things. My bad. |
@targos I thought this was blocked on the TODO in the comment? |
Can this be closed? |
Closing, if anyone wants to reopen feel free to do so. |
Seeking feedback and testing guidance.
Refs: nodejs/node#23941 (comment)