Is it possible to ignore particular branches so that Codecov either does not get run or reports successfully even with failing code thresholds? I’m trying to find a way to block PRs via failing thresholds but I don’t want to block things like emergency hotfixes.
Would a combination of using something like Status Checks exists with if_not_found work? And if so, what would be the best pattern be for doing something like this?
Hey @ethan – it depends on how you define hotfixes in the system.
If you can thinking of clever titling mechanics, you may be able to use wildcard terms on our “ignoring paths” feature to help here: Ignoring Paths.
If the emergency hotfix is more subjective and can relate to any file or path, we don’t really have a feature that supports feature, but of course depending on your Github settings you could still allow a merge with certain admin approval for a hotfix, even with a failing Codecov check.