'Only build pull requests' overrides circle.yml deployment builds

We have Only build pull requests for our project turned on for multiple very good reasons that others have highlighted on this forum.

The problem with this feature is that it interferes with our deployment section in our circle.yml file.


        branch: master
            - ./node_modules/.bin/gulp deploy

Because master is not our default branch (we have multiple release branches), the build seems to trigger but is then stopped by the Only build pull requests feature.

Builds started because of deployment section should not be stopped because of this feature.


It would be really nice if we can specify a list of some branches (i.e. ones to be deployed) to be built in addition to the default branch and pull requests.

1 Like