Skip to content

Is it possible for a user to disable specific hooks #214

Discussion options

You must be logged in to vote

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.

  • Skip the hook you want to disable manually git -n or CAPTAINHOOK_SKIP_HOOKS=1 git ... (you could create an alias for it)
  • Create two configs
  • Play around with a sub config

Two configs

  1. Copy your config to captainhook.nohook-x.json
  2. And install it for the special team members like this captainhook install --configuration=captainhook.nohook-x.json -f

With this everybody can just proceed as normal and the ones who want to dis…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CircleCode
Comment options

Answer selected by CircleCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants