-
Notifications
You must be signed in to change notification settings - Fork 22
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
additional hooks (ie commit-msg) #243
Comments
Hi, thanks for getting in touch!
autohooks was always designed with supporting all stages in mind. We just didn't needed other stages beside pre-commit yet. Thus I am of course open to all kind of changes in this regard. Your items are all valid and sophisticated. Just my short thoughts about it. The configured plugins should define which stages are used by default and the user should get the hidden power to override the behavior. From reading your items it seems you have something similar in mind. Feel free to create PRs. Please make the PRs as small as possible. If you add smaller PRs it is much more likely that we can integrate them quickly without much effort. Reviewing longer PRs that touch several areas and change behavior will take some time because this is only a side project and hasn't high priority. |
hey there, thanks for the reply. I'm just looking at the code trying to figure out the best approach to get this working. I totally agree with small PRs, but looking at the code and how the but that feels hella invasive. |
Hey @betaboon have you made any progress on this? If not, I might take a shot at it. I don't want to duplicate work, though. |
Nope, ended up doing got due to lack of feedback in this issue |
Hello there,
First off:
I'm glad i found
autohooks
as it addresses the downsides i see withpre-commit
when using it with python (namely configuration viapyproject.toml
and being able to managing dependencies with poetry)Now to my question:
I'm trying to integrate
commitizen
which is normally ran in thecommit-msg
-hook.After digging through
autohooks
-code it seems like it is only managing thepre-commit
-hook.It would be great if we could manage all the hooks.
(I'll call the individual hooks in
.git/hooks/
stages
from now on)The requirements i see:
activate
register a script for all stages by defaultactivate
to define which stages to register (aka "i only want pre-commit and commit-msg")I would be glad to get some feedback on this idea.
thanks in advance
The text was updated successfully, but these errors were encountered: