Is it possible for a user to disable specific hooks #214
-
as stated in the documentation, it is possible to overwrite the config section, but this does not seem to allow a user to disable a hook through the Is there a way for a single user to disable a given hook without chnaging the main config file, shared in git? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Disabling a hook via local You have multiple options.
Two configs
With this everybody can just proceed as normal and the ones who want to disable the actions can use the special config. Sub config
This has the advantage that you do not need to copy paste the config but it's a bit more complicated in terms of making everybody execute the same hooks. |
Beta Was this translation helpful? Give feedback.
Disabling a hook via local
config.json
is currently not possible. It was a conscious decision not to do so because the main idea behind the Cap'n was to manage all hooks via git for the whole team and having everybody executing the same hooks.You have multiple options.
git -n
orCAPTAINHOOK_SKIP_HOOKS=1 git ...
(you could create an alias for it)Two configs
captainhook.nohook-x.json
captainhook install --configuration=captainhook.nohook-x.json -f
With this everybody can just proceed as normal and the ones who want to dis…