I have a branch policy set on my main branch so that if anyone creates a pull request targeted to merge into that branch, the policy gets applied. The status check runs as expected if the pull request is published, but if the pull request remains as a draft / unpublished, then the status check won’t run. Is there a way to make this status check run on draft pull requests?
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.
This seems to imply that this is the intended default behavior, but also that there should be a way to override this behavior. Is this the case and if so, how can I apply this status check to any draft pull requests?
Below is some information on how this status check is specified currently: