Per branch configuration

Please check the 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

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, we recommend switching to it before opening an issue here.

Codecov 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%

@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.