You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Husky documentation mentions that hooks can run on push, but there is no explicit mention of pre-push hooks or how to implement them. This makes it unintuitive for new users who are only introduced to pre-commit in the documentation.
Notice that there is no clear example of how to set up pre-push hooks
Expected Behavior
The documentation should provide an example of how to set up a pre-push hook, similar to how pre-commit is documented.
Context
While it's possible to set up pre-push hooks using native Git hooks, one of Husky's main benefits is making Git hooks easier to manage and share across teams. Having clear documentation about pre-push hooks would help users understand how to leverage Husky's advantages over manual Git hook setup.
Suggested Fix
Add a section for pre-push hooks with a basic example, like:
echo"npm test"> .husky/pre-push
This will help new users understand how to use Husky beyond pre-commit.
The text was updated successfully, but these errors were encountered:
The current Husky documentation mentions that hooks can run on
push
, but there is no explicit mention ofpre-push
hooks or how to implement them. This makes it unintuitive for new users who are only introduced topre-commit
in the documentation.Steps to Reproduce
pre-push
pre-push
hooksExpected Behavior
The documentation should provide an example of how to set up a
pre-push
hook, similar to howpre-commit
is documented.Context
While it's possible to set up
pre-push
hooks using native Git hooks, one of Husky's main benefits is making Git hooks easier to manage and share across teams. Having clear documentation aboutpre-push
hooks would help users understand how to leverage Husky's advantages over manual Git hook setup.Suggested Fix
Add a section for
pre-push
hooks with a basic example, like:This will help new users understand how to use Husky beyond
pre-commit
.The text was updated successfully, but these errors were encountered: