How to apply update hook on server side of repo on github

I want to discard any push which is not following particular rules. I have deployed update hook on local git repo and tested but not sure how to do the same on github repo.

Can someone guide?

It is not possible to have custom update hooks on GitHub. What people tend to do instead is to require CI checks to pass for all branches before they get merged into master, and those CI checks check all the rules.

1 Like

Well this doesn’t help me enforce policy on pushes to feature branches. Is there some workaround