How can I add a custom git hook to a GitHub Enterprise repo?

后端 未结 3 1031
终归单人心
终归单人心 2021-01-06 03:26

I\'ve fired up an instance of GitHub Enterprise (11.10.272) and created a repository. I\'ve written a pre-receive hook in Ruby which I\'d like to use with that repository.

3条回答
  •  天命终不由人
    2021-01-06 03:42

    I know that this is really old, but GitHub Enterprise 2.6 just came out with pre-receive hooks. More information can be learned here: https://help.github.com/enterprise/admin/guides/developer-workflow/using-pre-receive-hooks-to-enforce-policy/.

    I'm fairly certain this will perfectly align with the things you are looking for. Hopefully this either helps OP, or anyone else who stumbles upon this later!

提交回复
热议问题