Enforce only pull request on visual studio team services

前端 未结 2 701
小鲜肉
小鲜肉 2021-02-07 07:01

There is any way I could enforce that some people could contribute by one branch only by pull request I want them to be able to accept pull request but not to direct push change

2条回答
  •  耶瑟儿~
    2021-02-07 07:18

    There are two things that must be set:

    1. Set a Policy on the branch(es) you want protected, the simplest is to set "Require a minimum number of reviewers". See Microsoft Git Branch Policies

    2. Ensure that Contributors are set not to be exempt from policy enforcement - Example

提交回复
热议问题