# Can I use codecov.yml to ensure that files touched by a PR increase coverage of those files above a certain threshold or delta?

**URL:** <https://community.codecov.com/t/can-i-use-codecov-yml-to-ensure-that-files-touched-by-a-pr-increase-coverage-of-those-files-above-a-certain-threshold-or-delta/99>\
**Category:** Uncategorized\
**Created:** [April 5, 2019, 4:58pm UTC](https://community.codecov.com/t/can-i-use-codecov-yml-to-ensure-that-files-touched-by-a-pr-increase-coverage-of-those-files-above-a-certain-threshold-or-delta/99 "2019-04-05T16:58:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YPCrumble](https://avatars.discourse-cdn.com/v4/letter/y/da6949/32.png) [@YPCrumble](https://community.codecov.com/u/YPCrumble)\
**Post date:** [April 5, 2019, 4:58pm UTC](https://community.codecov.com/t/can-i-use-codecov-yml-to-ensure-that-files-touched-by-a-pr-increase-coverage-of-those-files-above-a-certain-threshold-or-delta/99/1 "2019-04-05T16:58:28Z")

</div>

I have a repo whose overall coverage level is 50%. My goal is 90%, but I know that a single PR won’t get me there. What I’d like to do is a setting that says:

Pass the PR only if the files impacted by the PR are all at 90% coverage or greater, and the PR does not decrease overall coverage.

Is this possible?

---

<div class="post-metadata">

**Author:** ![hootener](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/hootener/32/15_2.png) [@hootener](https://community.codecov.com/u/hootener)\
**Post date:** [April 5, 2019, 5:44pm UTC](https://community.codecov.com/t/can-i-use-codecov-yml-to-ensure-that-files-touched-by-a-pr-increase-coverage-of-those-files-above-a-certain-threshold-or-delta/99/2 "2019-04-05T17:44:58Z")

</div>

I think the codecov/patch status might be able to do what you need. You can review the difference between codecov patch and project statuses here: [Status Checks](https://docs.codecov.io/docs/commit-status)

I think you would want to supply the thresholds in your codecov.yml like so:

```
coverage:
  status:
    patch:
      default:
        target: 90%

```
