Forum Discussion
azdataguy
Aug 21, 2023Copper Contributor
Require latest target branch to be merged as PR check
Hi, we are using feature branches actively. Each branch is merged via a PR. For a to PR to be merged we run extensive build validations (e.g. build the solution, deploy it, execute it, destroy i...
DavidDalley66
Jul 21, 2025Copper Contributor
Hey! I ran into this with our team’s Azure Repos setup; we wanted to make sure every PR was up-to-date with the target branch before merging, too.What worked for us was enabling the “Require merge to be up to date” policy under Branch Policies in Azure Repos. It blocks the PR from completing unless it’s merged with the latest target branch changes first.
Here’s the doc that helped me set it up:
https://learn.microsoft.com/en-us/azure/devops/repos/git/branch-policies?view=azure-devops&tabs=browser