With codecov, you can set the target coverage for your project. Assuming a project has 90% coverage right now,
coverage:
status:
project:
default:
target: auto
threshold: 1%
this will allow the next pr to reduce the coverage only to a min. of 89%. But with subsequent PRs this could keep dropping. Whereas,
coverage:
status:
project:
default:
target: 80%
will only allow the PRs which maintain the project coverage above 80%. But a single PR might drop the coverage from 90% to 80%.
Is it possible to have configurations which is like a combination of these two, where a new pr can reduce the project coverage by a max of 1% but the coverage should not go below 80%.