# Skipping Codecov report on master branch

**URL:** <https://community.codecov.com/t/skipping-codecov-report-on-master-branch/2086>\
**Category:** Support\
**Created:** [September 25, 2020, 4:59pm UTC](https://community.codecov.com/t/skipping-codecov-report-on-master-branch/2086 "2020-09-25T16:59:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfboismenu](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jfboismenu/32/1081_2.png) [@jfboismenu](https://community.codecov.com/u/jfboismenu)\
**Post date:** [September 25, 2020, 4:59pm UTC](https://community.codecov.com/t/skipping-codecov-report-on-master-branch/2086/1 "2020-09-25T16:59:19Z")

</div>

Hi,

Is there a way to tell codecov not to run on the `master` branch or have a higher tolerance on `master` before failing?

We’re fine having Codecov making a build fail in development because we want devs to have an indication of whether or not something may need more testing. However, when we make the decision to merge something to master, its because we’ve decided that coverage was sufficient regardless of what the coverage tool says.

As it is right now, our commits are sometimes marked as failed in Github because Codecov saw coverage going down.

Thanks for your help!

JF

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 29, 2020, 3:15pm UTC](https://community.codecov.com/t/skipping-codecov-report-on-master-branch/2086/2 "2020-09-29T15:15:59Z")

</div>

Hi @jfboismenu, would [this](https://docs.codecov.io/docs/commit-status#only_pulls), be what you’re looking for?

---

<div class="post-metadata">

**Author:** ![jfboismenu](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jfboismenu/32/1081_2.png) [@jfboismenu](https://community.codecov.com/u/jfboismenu)\
**Post date:** [September 29, 2020, 6:29pm UTC](https://community.codecov.com/t/skipping-codecov-report-on-master-branch/2086/3 "2020-09-29T18:29:20Z")

</div>

How did I miss this?! Unfortunately, this doesn’t seem to solve my problem. As you can [see on this commit](https://github.com/shotgunsoftware/tk-toolchain/commit/c74f58d3a443cb263cb2f4c97c492d6f6ec3752a), codecov posted something to my commit.

We’re using a Team .yaml file for configuration, as we have 60+ repos as part of our org.

```yaml
coverage:
  status:
    project:
      default:
        # basic
        threshold: 0.5%
        base: auto
        only_pulls: true

```

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [October 5, 2020, 1:59am UTC](https://community.codecov.com/t/skipping-codecov-report-on-master-branch/2086/4 "2020-10-05T01:59:36Z")

</div>

Hi @jfboismenu, would you mind copying that yaml into a repo and seeing if you have the same issue? I suspect the team yaml configuration for that field might have a bug.

---

<div class="post-metadata">

**Author:** ![jfboismenu](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jfboismenu/32/1081_2.png) [@jfboismenu](https://community.codecov.com/u/jfboismenu)\
**Post date:** [December 9, 2020, 7:20pm UTC](https://community.codecov.com/t/skipping-codecov-report-on-master-branch/2086/5 "2020-12-09T19:20:58Z")

</div>

Hi Tom!  
As you can see, I’ve committed a file at the root of the repo.

> <https://github.com/shotgunsoftware/tk-toolchain/commit/598cc70d3f08f7c0ae2802fa652747e99b1ac314>

If you click on the green check mark next to the commit description you can see codecov still posted a status. I suspect it would have failed if coverage had gone down.

As you can see from my CI pipeline, code cov [picked up the settings file](https://dev.azure.com/shotgun-ecosystem/Toolkit/_build/results?buildId=4274&view=logs&j=7f33e5bd-7764-5d8a-ba2e-506e078b9c3f&t=f73d870f-8cff-5db6-1755-f289fd1f48db&l=25).

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [December 11, 2020, 2:20am UTC](https://community.codecov.com/t/skipping-codecov-report-on-master-branch/2086/6 "2020-12-11T02:20:48Z")

</div>

```auto
coverage:
  status:
    project:
      default:
        # basic settings
        only_pulls: true
    patch:
      default:
        # basic settings
        only_pulls: true

```

@jfboismenu, this should fix it!

---

<div class="post-metadata">

**Author:** ![jfboismenu](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jfboismenu/32/1081_2.png) [@jfboismenu](https://community.codecov.com/u/jfboismenu)\
**Post date:** [October 22, 2021, 5:39pm UTC](https://community.codecov.com/t/skipping-codecov-report-on-master-branch/2086/7 "2021-10-22T17:39:33Z")

</div>

Hey! I think I tried what you gave me a while back and that didn’t do it unfortunately, but on a new project I was working on I started with those settings and it worked.

```auto
coverage:
  status:
    project:
      default:
        # basic
        target: auto
        threshold: 2%
        # advanced settings
        branches:
          - main
        if_ci_failed: error #success, failure, error, ignore
        informational: false
        only_pulls: true

```

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [October 23, 2021, 4:34pm UTC](https://community.codecov.com/t/skipping-codecov-report-on-master-branch/2086/8 "2021-10-23T16:34:02Z")

</div>

@jfboismenu sorry, I think I’ve lost context on this one. Are you seeing the issue still on the original repository?
