search

Home  >  Q&A  >  body text

Use git hook on github

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.

我想大声告诉你我想大声告诉你2795 days ago574

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-02 09:33:42

    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.

    reply
    0
  • Cancelreply