Hacker News new | ask | show | jobs
by hnlmorg 3200 days ago
That's potentially one way of doing it but Github does also have a specific feature for doing this literally called "Protected branches":

https://github.com/blog/2051-protected-branches-and-required...