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

**URL:** <https://discuss.circleci.com/t/only-build-pull-requests-overrides-circle-yml-deployment-builds/8009>\
**Category:** Bug Reports\
**Tags:** circle-yml\
**Created:** [November 9, 2016, 7:02am UTC](https://discuss.circleci.com/t/only-build-pull-requests-overrides-circle-yml-deployment-builds/8009 "2016-11-09T07:02:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jyboudreau](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jyboudreau/32/282_2.png) [@jyboudreau](https://discuss.circleci.com/u/jyboudreau)\
**Post date:** [November 9, 2016, 7:02am UTC](https://discuss.circleci.com/t/only-build-pull-requests-overrides-circle-yml-deployment-builds/8009/1 "2016-11-09T07:02:58Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![ippei](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ippei/32/15326_2.png) [@ippei](https://discuss.circleci.com/u/ippei)\
**Post date:** [January 27, 2017, 10:38am UTC](https://discuss.circleci.com/t/only-build-pull-requests-overrides-circle-yml-deployment-builds/8009/2 "2017-01-27T10:38:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:34am UTC](https://discuss.circleci.com/t/only-build-pull-requests-overrides-circle-yml-deployment-builds/8009/3 "2018-06-18T11:34:28Z")

</div>

Closed on June 18, 2018, 11:34am UTC


