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/
ButWebhooks
提供的都是類似git-hooks
中的post-hooks
的事件通知,也就是說,你可以通過Webhooks
檢查格式,但是不能因為格式不正確取消這次提交,貌似Github
這么做是為了防止pre-hooks
the operation time is too long, which may affect your experience.