Use git hook on github
我想大声告诉你
我想大声告诉你 2017-05-02 09:31:42
0
1
565

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.

我想大声告诉你
我想大声告诉你

reply all(1)
滿天的星座

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-hooksthe operation time is too long, which may affect your experience.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template