I want to use git-hooks to check the format of coding and submission instructions, and manage member push permissions, but the github website seems to only have simple read and write permissions. I would like to ask for some advice. Is it possible to use git-hooks conveniently on the github website? For example Yes, I hope you can provide a link to the instructions.
Github
上提供了Webhooks
, when a specific event occurs, the specified network address can be notified. The documentation is as follows: https://developer.github.com/webhooks/But
Webhooks
提供的都是类似git-hooks
中的post-hooks
的事件通知,也就是说,你可以通过Webhooks
检查格式,但是不能因为格式不正确取消这次提交,貌似Github
这么做是为了防止pre-hooks
the operation time is too long, which may affect your experience.