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

circle.yml

#1

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.

Example:

deployment:
    release:
        branch: master
        commands:
            - ./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.


#2

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.


#3