{ "uuid": [ { "value": "d3e4d075-4050-46af-bfd3-94944eaae35b" } ], "langcode": [ { "value": "en" } ], "type": [ { "target_id": "daily_email", "target_type": "node_type", "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" } ], "revision_timestamp": [ { "value": "2025-05-11T09:00:18+00:00" } ], "revision_uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "revision_log": [], "status": [ { "value": true } ], "uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "title": [ { "value": "Git hooks - yay or nay?" } ], "created": [ { "value": "2024-03-21T00:00:00+00:00" } ], "changed": [ { "value": "2025-05-11T09:00:18+00:00" } ], "promote": [ { "value": false } ], "sticky": [ { "value": false } ], "default_langcode": [ { "value": true } ], "revision_translation_affected": [ { "value": true } ], "path": [ { "alias": "\/daily\/2024\/03\/21\/git-hooks---yay-or-nay", "langcode": "en" } ], "body": [ { "value": "\n
Many people are very for or against Git hooks - scripts that run automatically on events such as pre-commit and pre-push.<\/p>\n\n
Commonly, they are used for running tasks such as altering a commit message or running before committing automated tests and static analysis before pushing a commit.<\/p>\n\n
I'm on the fence.<\/p>\n\n
I've used them and added support for them to Build Configs, but I don't feel strongly about them.<\/p>\n\n
They are awkward to set up (you need to edit the configuration for them to work) and can be easily disabled or bypassed.<\/p>\n\n
Some people think it's the Developer's responsibility to run the tasks before pushing changes or that they'll be run in a CI pipeline, so why would they need to be run locally?<\/p>\n\n
As I write many small commits and push changes regularly, I can find hooks irritating and prefer to use watchers instead with tools like There are also tools like Captain Hook that are built to manage Git hooks. Maybe, I should investigate it more.<\/p>\n\n What do you think? Are you yay or nay for Git hooks?<\/p>\n\n ",
"format": "full_html",
"processed": "\n Many people are very for or against Git hooks - scripts that run automatically on events such as pre-commit and pre-push.<\/p>\n\n Commonly, they are used for running tasks such as altering a commit message or running before committing automated tests and static analysis before pushing a commit.<\/p>\n\n I'm on the fence.<\/p>\n\n I've used them and added support for them to Build Configs, but I don't feel strongly about them.<\/p>\n\n They are awkward to set up (you need to edit the configuration for them to work) and can be easily disabled or bypassed.<\/p>\n\n Some people think it's the Developer's responsibility to run the tasks before pushing changes or that they'll be run in a CI pipeline, so why would they need to be run locally?<\/p>\n\n As I write many small commits and push changes regularly, I can find hooks irritating and prefer to use watchers instead with tools like There are also tools like Captain Hook that are built to manage Git hooks. Maybe, I should investigate it more.<\/p>\n\n What do you think? Are you yay or nay for Git hooks?<\/p>\n\n ",
"summary": null
}
],
"feeds_item": [
{
"imported": "1970-01-01T00:33:45+00:00",
"guid": null,
"hash": "8740e9029c98140ce8609709977e5145",
"target_type": "feeds_feed",
"target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76"
}
]
}watchexec<\/code> and
entr<\/code>.<\/p>\n\n
watchexec<\/code> and
entr<\/code>.<\/p>\n\n