How to verify that a check suite/run has been Rerequested?

Hello,

I know how to rerequest a check suite using the API: https://developer.github.com/v3/checks/suites/#rerequest-check-suite

After I rerequest a failing check suite I get a list of check runs for a ref using: https://developer.github.com/v3/checks/runs/#list-check-runs-for-a-specific-ref

The rerequested check runs still show up as “Failed” in the API and the UI while the rerun is in inprogress. How can I tell that a rerun is in progress via the API?

Thanks!

1 Like

Did you try the other APIs, such as List check runs in a check suite or Get a single check run? Whether they returned the same result?
I tested using the Re-run checks button and the API to re-run the failed checks, they all can show the corect status of checks.
Please make sure when you execute the API, the checks still are in process, and make sure you find the correct check run IDs. The check run ID will be changed after re-run.

Found a bug for the UI problem: https://github.community/t5/GitHub-API-Development-and/Actions-and-Check-Runs-are-not-updated-upon-a-re-run/m-p/44167#M3910

Looks like the check suite status does eventually change to “queued” when it is retried, but unfortunately never seems to change back. I could not find a bug about this.

@rmistry I’m facing the same issue. Where did you use the rerequest API? On your local? or On GitHub Action?