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
For a work project, we have a need of automating running a Taskfile task whenever a particular file changes and we want to automate this with pre-commit. Since there isn't an official Taskfile pre-commit hook I opted to write my own - I figured that I'd share in case this is a use case that Task would like to officially support:
This discussion was converted from issue #2185 on December 09, 2025 21:51.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
For a work project, we have a need of automating running a Taskfile task whenever a particular file changes and we want to automate this with
pre-commit. Since there isn't an official Taskfile pre-commit hook I opted to write my own - I figured that I'd share in case this is a use case that Task would like to officially support:Here's what this would look like if it were officially supported:
If this is something that looks useful I'd be happy to contribute - it would require a
.pre-commit-hooks.yamlto be placed at the root of the repo:Beta Was this translation helpful? Give feedback.
All reactions