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
It would be useful to reuse a hook command across multiple hooks. For example, using the same command across both post-checkout and post-merge.
Value
Some hooks need to run the same commands; copy and pasting these commands is more error prone, especially if these commands need to be changed in the future.
Behavior and configuration changes
A way I've though of changing this is to be able to define a top-level commands map in lefthook.yml, and then be able to reference it in my hooks. For example:
⚡ Summary
It would be useful to reuse a hook command across multiple hooks. For example, using the same command across both
post-checkout
andpost-merge
.Value
Some hooks need to run the same commands; copy and pasting these commands is more error prone, especially if these commands need to be changed in the future.
Behavior and configuration changes
A way I've though of changing this is to be able to define a top-level
commands
map inlefthook.yml
, and then be able to reference it in my hooks. For example:Current config (simplified)
Updated config
The text was updated successfully, but these errors were encountered: