禁用拉取请求创建者
Disable the pull request creator
我想知道是否可以禁止创建拉取请求的人在 Azure DevOps Server 2019 上审查和授权请求?
现在每个人都可以审查和授权他们自己的拉取请求,我们希望避免这种情况。
是的,你可以。转到分支策略并首先启用策略最小审阅者数。接下来确保取消选中 "Allow requestors to approve their own changes"。您可以根据分行政策这样做:
屏幕截图来自 Azure DevOps,但它也可用于服务器,如您在 Improve code quality with branch policies - Require a minimum number of reviewers 的文档中所见。
If Requestors can approve their own changes isn't selected, the creator of the pull request can still vote Approve on their pull request, but their vote won't count toward the Minimum number of reviewers.
我想知道是否可以禁止创建拉取请求的人在 Azure DevOps Server 2019 上审查和授权请求?
现在每个人都可以审查和授权他们自己的拉取请求,我们希望避免这种情况。
是的,你可以。转到分支策略并首先启用策略最小审阅者数。接下来确保取消选中 "Allow requestors to approve their own changes"。您可以根据分行政策这样做:
屏幕截图来自 Azure DevOps,但它也可用于服务器,如您在 Improve code quality with branch policies - Require a minimum number of reviewers 的文档中所见。
If Requestors can approve their own changes isn't selected, the creator of the pull request can still vote Approve on their pull request, but their vote won't count toward the Minimum number of reviewers.