I have a job set up that builds the merge commit from each Github pull request, using the approach outlined on the JetBrains blog, i.e. with a VCS root with the branch specification +:refs/heads/pull/(*/merge)
. This works fine - every time a pull request is submitted or updated with new commits, the build job is triggered.
However, it is also triggered for changes to master
, for example when a pull request is merged. I have another job that builds and tests changes to master (that also publishes successful builds to our staging environment) so I don't want to run this job for those changes.
How do I exclude master
changes in the VCS root?