Share via

DevOps Pull Request Approvers

arkiboys 9,711 Reputation points
2021-07-28T08:16:33.617+00:00

Hello,
At present, I have to manually set the approvers for the Pull Requests.
If I do not set an approver then I can still create a PR.
Is there a way to make sure that PR must be approved by an approver before proceeding?

Thank you

Community Center | Not monitored
0 comments No comments

Answer accepted by question author

  1. bhargaviannadevara-msft 5,476 Reputation points Moderator
    2021-07-28T10:00:25.24+00:00

    @arkiboys Thanks for reaching out. You can enforce a branch policy that automatically includes code reviewers when a Pull request is created.
    You can select reviewers for specific directories and files in your repo, and then these reviewers are automatically added to pull requests that change files along those paths.

    When you configure this policy as Required, the PR cannot be completed until all required reviewers approve the changes.
    Please refer to this article for more details: Automatically include code reviewers. Hope this helps.

    On a side note, please note that Azure DevOps and its services are not supported on the Microsoft Q&A platform. In case of further questions, please post your question in Developer Community, where the Azure DevOps team and DevOps community are actively answering questions.

    ----------

    If an answer is helpful, please "Accept answer" and/or "Up-Vote" which might help other community members reading this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.