List check runs for a Git reference

GET {{baseUrl}}/repos/:owner/:repo/commits/:ref/check-runs?check_name=<string>&status=<string>&filter=latest&per_page=30&page=1

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.

Lists check runs for a commit ref. The ref can be a SHA, branch name, or a tag name. GitHub Apps must have the checks:read permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the repo scope to get check runs in a private repository.

Request Params

KeyDatatypeRequiredDescription
check_namestringReturns check runs with the specified name.
statusstringReturns check runs with the specified status. Can be one of queued, in_progress, or completed.
filterstringFilters check runs by their completed_at timestamp. Can be one of latest (returning the most recent check runs) or all.
per_pagenumberResults per page (max 100)
pagenumberPage number of the results to fetch.

RESPONSES

status: OK

{&quot;total_count&quot;:1,&quot;check_runs&quot;:[{&quot;id&quot;:4,&quot;head_sha&quot;:&quot;ce587453ced02b1526dfb4cb910479d431683101&quot;,&quot;node_id&quot;:&quot;MDg6Q2hlY2tSdW40&quot;,&quot;external_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/github/hello-world/check-runs/4&quot;,&quot;html_url&quot;:&quot;https://github.com/github/hello-world/runs/4&quot;,&quot;details_url&quot;:&quot;https://example.com&quot;,&quot;status&quot;:&quot;completed&quot;,&quot;conclusion&quot;:&quot;neutral&quot;,&quot;started_at&quot;:&quot;2018-05-04T01:14:52Z&quot;,&quot;completed_at&quot;:&quot;2018-05-04T01:14:52Z&quot;,&quot;output&quot;:{&quot;title&quot;:&quot;Mighty Readme report&quot;,&quot;summary&quot;:&quot;There are 0 failures, 2 warnings, and 1 notice.&quot;,&quot;text&quot;:&quot;You may have some misspelled words on lines 2 and 4. You also may want to add a section in your README about how to install your app.&quot;,&quot;annotations_count&quot;:2,&quot;annotations_url&quot;:&quot;https://api.github.com/repos/github/hello-world/check-runs/4/annotations&quot;},&quot;name&quot;:&quot;mighty_readme&quot;,&quot;check_suite&quot;:{&quot;id&quot;:5},&quot;app&quot;:{&quot;id&quot;:1,&quot;slug&quot;:&quot;octoapp&quot;,&quot;node_id&quot;:&quot;MDExOkludGVncmF0aW9uMQ==&quot;,&quot;owner&quot;:{&quot;login&quot;:&quot;github&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDEyOk9yZ2FuaXphdGlvbjE=&quot;,&quot;url&quot;:&quot;https://api.github.com/orgs/github&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/orgs/github/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/orgs/github/events&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:true},&quot;name&quot;:&quot;Octocat App&quot;,&quot;description&quot;:&quot;&quot;,&quot;external_url&quot;:&quot;https://example.com&quot;,&quot;html_url&quot;:&quot;https://github.com/apps/octoapp&quot;,&quot;created_at&quot;:&quot;2017-07-08T16:18:44-04:00&quot;,&quot;updated_at&quot;:&quot;2017-07-08T16:18:44-04:00&quot;,&quot;permissions&quot;:{&quot;metadata&quot;:&quot;read&quot;,&quot;contents&quot;:&quot;read&quot;,&quot;issues&quot;:&quot;write&quot;,&quot;single_file&quot;:&quot;write&quot;},&quot;events&quot;:[&quot;push&quot;,&quot;pull_request&quot;]},&quot;pull_requests&quot;:[{&quot;url&quot;:&quot;https://api.github.com/repos/github/hello-world/pulls/1&quot;,&quot;id&quot;:1934,&quot;number&quot;:3956,&quot;head&quot;:{&quot;ref&quot;:&quot;say-hello&quot;,&quot;sha&quot;:&quot;3dca65fa3e8d4b3da3f3d056c59aee1c50f41390&quot;,&quot;repo&quot;:{&quot;id&quot;:526,&quot;url&quot;:&quot;https://api.github.com/repos/github/hello-world&quot;,&quot;name&quot;:&quot;hello-world&quot;}},&quot;base&quot;:{&quot;ref&quot;:&quot;master&quot;,&quot;sha&quot;:&quot;e7fdf7640066d71ad16a86fbcbb9c6a10a18af4f&quot;,&quot;repo&quot;:{&quot;id&quot;:526,&quot;url&quot;:&quot;https://api.github.com/repos/github/hello-world&quot;,&quot;name&quot;:&quot;hello-world&quot;}}}]}]}