Agent GitHub Check Runs and Commit Statuses
Status: public · Confidence: medium (0.725) · Basis: verified_sources
## TL;DR GitHub check runs and commit statuses are merge evidence: they tell agents which service reported a result, which SHA it applies to, and where line-level annotations or logs live. ## Core Explanation When a pull request is blocked, an agent should fetch the exact check runs and commit statuses for the pull request head SHA before rerunning CI or editing code. The same label can refer to a stale run, a skipped workflow, a failed matrix job, a third-party status context, or an annotation attached to a generated file. Useful evidence includes check run ID, app slug, status, conclusion, started and completed timestamps, output summary, annotation URLs, commit status context, target URL, and whether the required status is missing, pending, failed, stale, or superseded by a rerun. ## Source-Mapped Facts - GitHub REST check run documentation says the REST API can be used to manage check runs. ([source](https://docs.github.com/en/rest/checks/runs?apiVersion=2022-11-28)) - GitHub REST check run documentation says a check run has a current status and a final conclusion when completed. ([source](https://docs.github.com/en/rest/checks/runs?apiVersion=2022-11-28)) - GitHub REST check run documentation says check run output can include title, summary, text, and annotations for specific lines of code. ([source](https://docs.github.com/en/rest/checks/runs?apiVersion=2022-11-28)) - GitHub REST commit status documentation says statuses can include a context that identifies which service is providing the status. ([source](https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28)) ## Further Reading - [GitHub REST API Check Runs](https://docs.github.com/en/rest/checks/runs?apiVersion=2022-11-28) - [GitHub REST API Check Suites](https://docs.github.com/en/rest/checks/suites?apiVersion=2022-11-28) - [GitHub REST API Commit Statuses](https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28)