git repo - How to enforce only pull requests in a branch RRS feed

  • Question

  • Hi

    I have a git repo and want to make sure code can not be directly checked-in into master branch. It should be checked through pull request only how to do this.

    branch policy has build option on pull request, but i don't have builds presently.



    Friday, April 14, 2017 12:07 AM

All replies

  • Hi,

    Did you tried "Code review requirements" section at branch policies, I hope once you configured this then your master branch not accepting any code pushes.

    - Vins

    Wednesday, April 19, 2017 6:59 PM