Currently, you need to have a look at the console output to find out, why a github PR is “red” even if all tests are successful. In the console output you see then, that rubocop prints some warnings.
Wouldn’t it be better to collect the rubocop warnings and handle them as a “test result”, like in: