Git Hooks #1764
chrisvander
started this conversation in
Ideas
Git Hooks
#1764
Replies: 1 comment 1 reply
-
Couldn't you do this with a source'd script in the config file? https://mise.jdx.dev/environments.html#env-source |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One thing that I commonly set up on repositories that could easily be replaced Mise would be Git Hooks. Currently, I have to install Husky and do an additional setup step which is commonly in the
package.json
"prepare" script. I could envision a[hooks.commit-msg]
block with a similar configuration to the task runner. Or, could reference a task directly. Those hooks could be set up whenmise install
is run inside of a fresh repository. What do you think?And if hooks don't make sense for the roadmap, something that would make this flow easier is a
prepare
orpostinstall
task that runs immediately aftermise install
.Beta Was this translation helpful? Give feedback.
All reactions