-
Notifications
You must be signed in to change notification settings - Fork 320
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
Consider merging hooks into tasks #3333
Comments
Bonus: don't run tasks which sources have not changed on |
How would this work with file tasks? Does that mean each file task needs to be read to check for hooks every |
that's already happening when you use |
I feel like #3314 is all we actually need here without making the config more complex |
I also should mention I think this is a bad iea: enter = "mise install && uv sync && pnpm install" I would strongly not be in favor of projects doing something like that. hooks are available if you really want to do it, but I would find that behavior maddening on a project I worked on. |
Hi,
It would be great if we could define within a task if it should run as a hook as well instead of having separate definitions for hooks.
With the new hooks feature I can run some commands when files changed:
This is great, but there are a few problems:
As a workaround, we could do the following:
We now have some unnecessary duplication.
What I suggest is to add a new field within tasks to also run them as a hook:
The text was updated successfully, but these errors were encountered: