The Final Piece: How to Trigger PR Builds
How to correctly configure PR validation builds using Azure DevOps Branch Policies instead of YAML pr: blocks.
Remove the pr: block from your YAML — use Branch Policies instead.
- Go to Repos → Branches
- Your branch →
...→ Branch policies - Under "Build Validation" → +
- Select your pipeline, set trigger to Automatic, requirement to Required
- Save; repeat for
main