Code coverage for merge gates

Hi All. We want to implement code coverage for merge gates implementation. We can’t keep a hard coded code coverage percentage as we won’t b able to proceed with this strategy.

We are thinking of a strategy that the code coverage should not get degraded with respect to the previous coverage. If code coverage goes below than the earlier percentage the build will fail

Any idea on how we can implement this