Please provide azure pipeline yml code to pause a PR build stage until two approvals are…
- User
Please provide azure pipeline yml code to pause a PR build stage until two approvals are received for the pull request. Approvals should be obtained from the PR and not tied to specific people
- Assistant
In Azure Pipelines, you can't directly set approvals in the YAML file. Instead, you should configure branch policies for the target branch of your Pull Requests. To require two approvals for a PR build, you can follow these steps:
- Navigate to your Azure DevOps project.
- Go to the "Repos" section from the left-hand menu.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.