Create a check run

POST {{baseUrl}}/repos/:owner/:repo/check-runs

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.

Creates a new check run for a specific commit in a repository. Your GitHub App must have the checks:write permission to create check runs.

Request Body

{"name"=>"<string>", "head_sha"=>"<string>", "details_url"=>"<string>", "external_id"=>"<string>", "status"=>"queued", "started_at"=>"<string>", "conclusion"=>"<string>", "completed_at"=>"<string>", "output"=>{"title"=>"<string>", "summary"=>"<string>", "text"=>"<string>", "annotations"=>[{"path"=>"<string>", "start_line"=>"<integer>", "end_line"=>"<integer>", "annotation_level"=>"<string>", "message"=>"<string>", "start_column"=>"<integer>", "end_column"=>"<integer>", "title"=>"<string>", "raw_details"=>"<string>"}, {"path"=>"<string>", "start_line"=>"<integer>", "end_line"=>"<integer>", "annotation_level"=>"<string>", "message"=>"<string>", "start_column"=>"<integer>", "end_column"=>"<integer>", "title"=>"<string>", "raw_details"=>"<string>"}], "images"=>[{"alt"=>"<string>", "image_url"=>"<string>", "caption"=>"<string>"}, {"alt"=>"<string>", "image_url"=>"<string>", "caption"=>"<string>"}]}, "actions"=>[{"label"=>"<string>", "description"=>"<string>", "identifier"=>"<string>"}, {"label"=>"<string>", "description"=>"<string>", "identifier"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;id&quot;:4,&quot;head_sha&quot;:&quot;ce587453ced02b1526dfb4cb910479d431683101&quot;,&quot;node_id&quot;:&quot;MDg6Q2hlY2tSdW40&quot;,&quot;external_id&quot;:&quot;42&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;in_progress&quot;,&quot;conclusion&quot;:null,&quot;started_at&quot;:&quot;2018-05-04T01:14:52Z&quot;,&quot;completed_at&quot;:null,&quot;output&quot;:{&quot;title&quot;:&quot;Mighty Readme Report&quot;,&quot;summary&quot;:&quot;&quot;,&quot;text&quot;:&quot;&quot;,&quot;annotations_count&quot;:1,&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;}}}]}