GeezerVison is showing github.com — Support for other types of hooks · Issue #1762 · pre-commit/pre-commit
Support for other types of hooks #1762
Description
Is there are reason why only some types of hooks are supported? I am interested in the post-merge hook that checks whether any documentation source files have been changed, and rebuilds them to html and prints them if they have. I would like to run it as a post-merge hook so it runs on git pull.
The documentation suggests this is not supported. Is there a workaround? Is there a technical obstruction to this use case?
Activity
asottile commented on Jan 20, 2021
nope! just needs someone to implement the other hooks. They've been implemented as needed
if you want to try your hand at adding one, you might want to take a look at one of the others that's been implemented
for example, here's the commit which added post-commit support: 26adf1d
psacawa commented on Jan 20, 2021
ContributorAuthor
More actions
This seems not hard, especially since post-merge is simple, so I'll try this.
asottile commented on Feb 7, 2021
@psacawa did you have a change to take a look at this?
psacawa commented on Feb 7, 2021
ContributorAuthor
More actions
Yes, however I didn't create any tests, so I didn't submit a pr: 317ac63
This is unfortunately low on my list of priorities. What's there is the easy part.
Metadata
Metadata
Development
No branches or pull requestsIssue actions