Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Triggering Pull Request Builds automatically on draft pull requests in Azure DevOps (ADO)

If I make a pull request in ADO from one of my branches then any commits I push to my branch automatically trigger the build pipeline:


Screenshot from ADO showing automatic build triggered


This is configured in the build validation branch policies on master:


Screenshot from ADO showing branch policies for master


But for draft pull requests I need to trigger builds manually:


Screenshot from ADO showing manual build trigger


The documentation (here) does not mention any distinction between active and draft pull requests. How do I configure my project so that commits to branches in a draft pull requests automatically trigger a build?

like image 891
dumbledad Avatar asked Oct 12 '25 03:10

dumbledad


1 Answers

According to the docs:

Draft pull requests do not include reviewers or run builds by default but allow you to manually add reviewers and run builds. To promote the pull request to a normal pull request, simply click the Publish button from the pull request detail page.

So, it looks like you experience the expected behavior.

like image 51
Yan Sklyarenko Avatar answered Oct 16 '25 07:10

Yan Sklyarenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!