# PR for expected branch

**URL:** <https://travis-ci.community/t/pr-for-expected-branch/12672>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** github-build-check\
**Created:** [February 10, 2022, 4:54pm UTC](https://travis-ci.community/t/pr-for-expected-branch/12672 "2022-02-10T16:54:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HILLBILLYHeisT](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/hillbillyheist/32/7476_2.png) [@HILLBILLYHeisT](https://travis-ci.community/u/HILLBILLYHeisT)\
**Post date:** [February 10, 2022, 4:54pm UTC](https://travis-ci.community/t/pr-for-expected-branch/12672/1 "2022-02-10T16:54:09Z")

</div>

I turned that off (want to have only PR build) and also added `only` to `.travis.yml` , but still have two builds, but now branch builds just in expecting stage. In web UI Travis - no more builds for branch created.

[![enter image description here](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/f/fc1081b688ea843b3453ed53bd3486ffedafa46e.png)](https://i.stack.imgur.com/ukPJt.png)

```auto
branches:
  only:
  - master

language: python
os: linux
dist: xenial

jobs:
  include:
  - name: pytest
    python:
      - 3.7
    install:
      - pip install -U pip
      - pip install -U pytest
      - pip install -U PyYAML
      - pip install -U Cerberus
    script:
      - pytest -vvs

```

any help aprecciated thanks

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [February 10, 2022, 4:57pm UTC](https://travis-ci.community/t/pr-for-expected-branch/12672/2 "2022-02-10T16:57:12Z")

</div>

You can filter your jobs using conditional checks like:

```nohighlight
    - stage: build
      name: "build pull request"
      if: type IN (pull_request)
      install:
            echo 'Building pull request';

```
