Lesstep
Azure DevOps Services and Server · Completing pull requests · October 26, 2026

Azure DevOps auto-complete: required vs optional policies, and why it does not complete

Set auto-complete completes a pull request by itself once its branch policies are met, with the merge type and options you chose. Which policies it waits for depends on how it was set: the web portal waits on the required ones, while the command line and the REST API can end up waiting on the optional ones too. Below is how it works, from Microsoft's Set a pull request to autocomplete and the REST reference for Pull Requests - Update.

Setting it in the web portal

Why auto-complete does not complete

From the command line and the REST API

Auto-complete in IntelliJ IDEA

Azure DevOps Pull Requests, a plugin by Lesstep for JetBrains IDEs 2024.1 or later and Android Studio, lists the pull requests of Azure DevOps Services and Azure DevOps Server in an IDE tool window with their branch policies. Its Complete dialog can set auto-complete with your merge type and branch deletion, refuses it if the source branch got new commits after you opened the pull request, and, from version 1.0.54, waits on the required policies only, as the web portal does. Auto-complete can be cancelled from the pull request. The review inbox and the branch policies are free; voting, commenting, completing and creating pull requests are Pro, with a 30-day trial.

Get it on JetBrains Marketplace

Azure DevOps is a trademark of Microsoft Corporation; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by Microsoft or JetBrains.

More: az repos pr commands · build validation and expired builds · completing the linked work items · comment status and the comment resolution policy · merge types and Limit merge types · required reviewers and path filters · why an approval does not count · explicit override to bypass policies · 日本語