-
Notifications
You must be signed in to change notification settings - Fork 220
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
pre-push hook doesn't work #165
Comments
Hi @RomanPakhomov! Did you check out the Troubleshooting guide? What is the output of |
@DmitryTsepelev We have the same issue for |
Hey @ShPakvel , now lefthook wants push files to exist or skips the check. Could you share your config and explain your use case with more details? |
Hey @mrexox! It can be simple like this: pre-push:
follow: true
piped: true
commands:
1_pronto:
run: bundle exec pronto run --exit-code -c origin/master
2_rspec:
run: bundle exec rspec
3_rswag:
run: bundle exec rails rswag
4_open_api_validation:
run: bundle exec rails openapi:validate
5_bundler_audit:
run: bundle exec bundle-audit check --update And it skips even with option pre-push:
follow: true
piped: true
commands:
1_pronto:
skip_empty: false
run: bundle exec pronto run --exit-code -c origin/master
2_rspec:
skip_empty: false
run: bundle exec rspec
3_rswag:
skip_empty: false
run: bundle exec rails rswag
4_open_api_validation:
skip_empty: false
run: bundle exec rails openapi:validate
5_bundler_audit:
skip_empty: false
run: bundle exec bundle-audit check --update Idea is that we want to be able to run all these check with the same single command UPD: Thoughts about more correct approach described in the next comment. |
@mrexox My personal view is that we don't want to use |
I see. This looks like a new feature. So, you want to prevent skips if there's |
Please, check out v1.5.1 of lefthook |
@mrexox It works smoothly. 🎉 ❤️ Thank you for so quick response and actions! 💯 🙇🏼 |
Hello everyone! I have little issue connected wtih lefthook. Some information:
pre-push: commands: test: run: npx cypress run
I think that issue connected with git setup maybe, but I checked .git/hooks directory, and see correct pre-push file.
The text was updated successfully, but these errors were encountered: