Open alamenai opened 2 months ago
you can get tty interaction working with something like exec < /dev/tty && ./myscript.sh
... but your hook still won't prompt the user if he uses a software like github desktop... my solution is to run the tests on pre-push on just the projects that changed in my monorepo
Yes, we have a pre-commit script for running tests for each changes made but some developers disable it and sometimes miss to run the tests and then push the code.
Do you recommend to add the test command in the pre-push script?
I have a pre-push script where I want to prompt the developers if they run their tests locally before they push their code:
The problem is passing directly to the build command without waiting to get the response (Y/N):