# Per branch configuration

**URL:** <https://community.codecov.com/t/per-branch-configuration/1970>\
**Category:** Support\
**Created:** [September 10, 2020, 2:03pm UTC](https://community.codecov.com/t/per-branch-configuration/1970 "2020-09-10T14:03:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eseiler](https://avatars.discourse-cdn.com/v4/letter/e/ecb155/32.png) [@eseiler](https://community.codecov.com/u/eseiler)\
**Post date:** [September 10, 2020, 2:03pm UTC](https://community.codecov.com/t/per-branch-configuration/1970/1 "2020-09-10T14:03:57Z")

</div>

_Please check the [troubleshooting guide](https://docs.codecov.io/docs/troubleshooting-guide) before creating a ticket._

### Description

I’d like to configure the status reports depending on the branch:

If we are on the master branch: Ensure coverage is above a certain threshold.  
On any other branch: Report fail if coverage drops more than 0.01%

Currently, both checks are run on the PR.  
Is it possible to have different status criteria for different branches?

### Repository

> <https://github.com/seqan/seqan3/pull/2111>
>
> Resolves https://github.com/seqan/product\_backlog/issues/205
> 
> My goal for now …is:
> \* Complain in PRs about any coverage drop
> \* Do not complain in master if \> 97%
> \* Make codecov independent of CI (do not fail just because CI failed, do not wait for CI to finish to post the coverage results)

### CI/CD

GitHub Actions, job using the bash uploader

### Uploader

Please provide which uploader you are using and command used to run it. If you are not using the [bash uploader](https://docs.codecov.io/docs/about-the-codecov-bash-uploader), we recommend switching to it before opening an issue here.

### Codecov YAML

```yaml
codecov:
  require_ci_to_pass: no
  notify:
    wait_for_ci: no

coverage:
  status:
    project:
      master:
        branches:
          - master
        target: 97%
        threshold: 0%
        if_ci_failed: success
      default:
        if_ci_failed: success
        target: auto
        threshold: 0.01%

```

---

<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 22, 2020, 3:34pm UTC](https://community.codecov.com/t/per-branch-configuration/1970/2 "2020-09-22T15:34:27Z")

</div>

@eseiler, I believe you have it configured correctly, is this not what you are seeing? The only thing is we don’t support regexes in the `branches` field, so there’s no way to specify not `master`.
