Replies: 1 comment
-
Hey! Looks like you need to distribute the lefthook configuration across multiple repos. There's an option for that – remote:
git_url: https://github.com/organization/lefthook-config When you install This is the currently supported approach. I'll be glad to know more about your use case, so I could help with configuration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My team has many projects that use git hooks. They are always the same hooks, we just copy the logic over.
It would be really beneficial to us if we could write an NPM package over our git hooks manager (currently, husky) and then by installing the package, the project we installed the package to just "gets" the git hooks automatically. Maybe something in lefthook could be exposed to specify a parent directory to run against the .git folder?
For example
Is there a way to have
custom-lefthook-pkg
enable it's git hooks on the project-root?Or does this exist already? Thank you 🙏🏼
Beta Was this translation helpful? Give feedback.
All reactions