In Azure DevOps I created a branch policy for dev branch and selected a build definition.
in the build definition "Default branch for manual and scheduled builds" is set to Master and under trigger continuous integration is disabled.
When we do a pull request from feature to dev branch. It seems to take the right branch to build but how does the build definition know which branch to build?