Trigger a build on each commit only if a PR is created on the branch

android
#1

Instead of triggering a build on each commit, Is there a way to trigger the build (for every commit) only if a PR is created on the branch?
To put it simply, I don’t want to run a build on each commit, if there is no PR on the branch.

Please let me know if there is a way to configure this.

0 Likes

#2

Hi @karthik-tangirala,

Sure it’s possible! Please see: https://devcenter.bitrise.io/webhooks/trigger-map/#how-to-build-only-pull-requests

If you’d have any questions just let us know! :wink:

0 Likes