Answer the question
In order to leave comments, you need to log in
How to organize Pre-receive Hooks on GitHub?
Task:
Before pushing to the server, you need to check the code for compliance with the psr style, if there are errors, push should be discarded.
Naturally, checking on the server is of interest, since on the client it is easily bypassed and hooks cannot be updated by all developers.
After reading articles and digging, I realized that this is done through hooks, in particular pre-receive. However, GitHub doesn't seem to support server hooks without the enterprise package.
The question is, can I somehow solve my problem without an enterprise?
P.S. the repository is private.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question