This is possibly my single most wanted GitHub feature, by far. It’s almost impossible to guarantee safety in a monorepo without conditionally required checks without adopting some kind of expensive workaround – either an automated expensive workaround like in @jffaust’s message, or a manually expensive workaround (e.g. folks becoming human linters, type checkers, and test suite validators on PR reviews like it’s 2009 again ). The end result is that we’ve ended up with a nasty habit of marking no conditional status checks as required, even though they really are required, which has led to folks prematurely merging things because we’ve gotten a bit too used to CI status being red on
main, which isn’t ideal, to put it lightly.
Also, just to clarify, this shouldn’t just be added in GitHub Actions, but rather at the GitHub level as an option for all required status checks, regardless of CI / CD provider.