-
Notifications
You must be signed in to change notification settings - Fork 555
Log githook output #8
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
Comments
Sorry, to be more specific, I see the output when the hook has finished and the commit has succeeded, but I don't see any of the output while it's in progress (like I do when I commit normally). |
Hi Kent. Sorry it took me a bit to get back to you. Can you provide your pre-commit hook? In my case, I actually don't see any eslint output when I run Currently the 'user-friendly' :D default is that commitizen will try to commit, wait for the return code and then present a pretty message to the user based on the return code. This means that we're not piping the output of the command in real time. We probably could explore that scenario either by default or first behind a flag. Again, if you have a scenario where you have a properly configured adapter in a repo and are getting actual eslint output back, I'd love to see it the pre-commit hook. Perhaps mine could be tweaked. |
Try out the angular-formly repo.
(Sent from my mobile device, please forgive typos or brevity)
|
Sorry, I misunderstood. I don't have a scenario where things are working
(Sent from my mobile device, please forgive typos or brevity)
|
I am no longer using the pretty commit messages. Instead cz should output the raw git results. This should help with this although I'll probably have you double check it on release. |
👍 |
Ok, 2.0.2 seems to be the most stable release in the past 24 hours so we can probably check this with it. I can try it out but it might not be until tomomorrow. |
You'll notice that it worked :-) |
Actually... Sorry.. No, I forgot what I was looking for. The word-wrap problems have been solved, but it's still not printing out the githook output until after the scripts are finished :-( |
Alright. Thanks for checking. I'll dig in for 2.1.
|
I just put in a PR to gulp-git. Once that lands I'll be able to get incremental githook output working. Thanks for waiting. stephenlacy/gulp-git#99 |
Sweet dude! 😎 |
We needed a way to provide incremental progress to the cli as the commit exec command runs. We needed to land a PR in gulp-git first. This has now landed. This implements an incremental feedback using the emitData option and does a few dependency updates. Closes #8 Closes #28 Closes #31 Closes #32 Closes #33
Finally got a chance to test this out. Works perfectly! Thanks! |
Glad to hear. Thanks for testing!
|
@jimthedev Hi, Can you help me ? |
I have a pre-commit hook that runs eslint. I don't see any output from eslint when that is running when using commitizen. Any idea why that is?
The text was updated successfully, but these errors were encountered: