branch policy
A rule on an Azure Repos branch that a pull request must satisfy before it can complete, such as two reviewers or a passing build.
In more detail
Policies also block direct pushes to the protected branch. Users with the bypass policies permission can still complete a pull request without meeting them, so grant it sparingly.
Related terms
- Azure Repos — The Azure DevOps service that hosts Git repositories, with pull requests and branch policies.
- branch protection rule — A setting on a hosting service that stops changes reaching a branch, usually main, unless conditions such as an approved review and passing checks are met.
- pull request — A request on a hosting service such as GitHub to merge one branch into another, with a page for review, discussion and automated checks.
Taught in
- Branch Policies And Protection Rules — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep