Automatically trigger builds ONLY for PR branches in VSTS

Viewed 445

I am trying to do the following:

  • A developer (e.g.: James) could be working on this private branch (e.g.: james/add-custom-logger) for a while before sending out a PR.
  • Once James sends out a PR, I would like to automatically trigger a build for that PR branch.

I am struggling to figure out how to do this in VSTS builds.
I know that I could setup build triggers based on branches like feature/* and could ask all developers to follow that pattern, so in this case it would be feature/james/add-custom-logger.

But I don't want to trigger those branches until a pull request is sent for those branches.

Any ideas on how to achieve this?

1 Answers
Related