Trigger options I have looked at are:
- `branches` will run automatically on a commit to a branch
- `pull-requests` in my testing will run when a pull request is created or merged
I would like a trigger that runs on each commit to a branch that is currently part of a pull request.
I am considering using the branches trigger for all branches and writing a custom pipe to check the Bitbucket API to get any related PRs for the commit. The downside being that it would require a pipeline run for every commit to any branch and I am not sure what I would do in the case no PR was found. I guess in that instance I could fail the build but that is not an ideal outcome to have a bunch of failed builds in my pipeline history.