Sample - GitHub REST API
GET/repos/{owner}/{repo}/check-runs/{check_run_id}

Get a check run

Gets a single check run using its id.

[!NOTE] The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty pull_requests array.

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint on a private repository.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
check_run_idintegerrequired
The unique identifier of the check run.

1 status code
200Response
idintegerrequired
The id of the check.
head_shastringrequired
The SHA of the commit that is being checked.
node_idstringrequired
external_idstringrequired
urlstringrequired
html_urlstringrequired
details_urlstringrequired
statusstringrequired
The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs.
Allowed:queuedin_progresscompletedwaitingrequestedpending
conclusionstringrequired
Allowed:successfailureneutralcancelledskippedtimed_outaction_required
started_atstringrequired
completed_atstringrequired
outputobjectrequired
namestringrequired
The name of the check.
check_suiteobjectrequired
appobjectrequired
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
pull_requestsarray<PullRequestMinimal>required
Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check.
deploymentobjectoptional
A deployment created as the result of an Actions check run from a workflow that references an environment