Quarantine tests based on number of failing branches

In our test workflow we mainly want tests to be quarantined if the bug has made its way into staging, and this would be reflected if it’s failing at the same place across multiple branches.

I am thinking this could be a requirement under test state, where even if a test is failing multiple times, if it’s only on one branch then it shouldn’t be quarantined since likely the dev working on that PR needs to fix whatever broke the test.