Statuses don't include GitHub Action

Hi there,
In a repo, I have the following 4 checks

However, if I try to their status via the API I get only those generated by codeclimate but not by the GitHub Action that runs CI. See below

https://api.github.com/repos/:ORG/:REPO/commits/2961d4224c8572548342b7e64f091aba177da419/statuses

[
  {
    "state" : "success",
    "creator" : {
      "id" : 272616,
      "organizations_url" : "https:\/\/api.github.com\/users\/:ORG\/orgs",
      "received_events_url" : "https:\/\/api.github.com\/users\/:ORG\/received_events",
      "following_url" : "https:\/\/api.github.com\/users\/:ORG\/following{\/other_user}",
      "login" : ":ORG",
      "avatar_url" : "https:\/\/avatars1.githubusercontent.com\/u\/272616?v=4",
      "url" : "https:\/\/api.github.com\/users\/:ORG",
      "node_id" : "MDQ6VXNlcjI3MjYxNg==",
      "subscriptions_url" : "https:\/\/api.github.com\/users\/:ORG\/subscriptions",
      "repos_url" : "https:\/\/api.github.com\/users\/:ORG\/repos",
      "type" : "User",
      "html_url" : "https:\/\/github.com\/:ORG",
      "events_url" : "https:\/\/api.github.com\/users\/:ORG\/events{\/privacy}",
      "site_admin" : false,
      "starred_url" : "https:\/\/api.github.com\/users\/:ORG\/starred{\/owner}{\/repo}",
      "gists_url" : "https:\/\/api.github.com\/users\/:ORG\/gists{\/gist_id}",
      "gravatar_id" : "",
      "followers_url" : "https:\/\/api.github.com\/users\/:ORG\/followers"
    },
    "id" : 10843188632,
    "created_at" : "2020-09-23T08:21:53Z",
    "context" : "codeclimate\/total-coverage",
    "target_url" : "https:\/\/codeclimate.com\/repos\/0000653a329424025b0003b0\/compare\/0501fe77fe21369a9cedde93ab8a04463081f325...2961d4224c8572548342b7e64f091aba177da419#ratings",
    "node_id" : "MDEzOlN0YXR1c0NvbnRleHQxMDg0MzE4ODYzMg==",
    "description" : "97% (0.0% change)",
    "updated_at" : "2020-09-23T08:21:53Z",
    "avatar_url" : "https:\/\/avatars3.githubusercontent.com\/oa\/26380?v=4",
    "url" : "https:\/\/api.github.com\/repos\/:ORG\/:REPO\/statuses\/2961d4224c8572548342b7e64f091aba177da419"
  },
  {
    "state" : "success",
    "creator" : {
      "id" : 272616,
      "organizations_url" : "https:\/\/api.github.com\/users\/:ORG\/orgs",
      "received_events_url" : "https:\/\/api.github.com\/users\/:ORG\/received_events",
      "following_url" : "https:\/\/api.github.com\/users\/:ORG\/following{\/other_user}",
      "login" : ":ORG",
      "avatar_url" : "https:\/\/avatars1.githubusercontent.com\/u\/272616?v=4",
      "url" : "https:\/\/api.github.com\/users\/:ORG",
      "node_id" : "MDQ6VXNlcjI3MjYxNg==",
      "subscriptions_url" : "https:\/\/api.github.com\/users\/:ORG\/subscriptions",
      "repos_url" : "https:\/\/api.github.com\/users\/:ORG\/repos",
      "type" : "User",
      "html_url" : "https:\/\/github.com\/:ORG",
      "events_url" : "https:\/\/api.github.com\/users\/:ORG\/events{\/privacy}",
      "site_admin" : false,
      "starred_url" : "https:\/\/api.github.com\/users\/:ORG\/starred{\/owner}{\/repo}",
      "gists_url" : "https:\/\/api.github.com\/users\/:ORG\/gists{\/gist_id}",
      "gravatar_id" : "",
      "followers_url" : "https:\/\/api.github.com\/users\/:ORG\/followers"
    },
    "id" : 10843188597,
    "created_at" : "2020-09-23T08:21:53Z",
    "context" : "codeclimate\/diff-coverage",
    "target_url" : "https:\/\/codeclimate.com\/repos\/0000653a329424025b0003b0\/compare\/0501fe77fe21369a9cedde93ab8a04463081f325...2961d4224c8572548342b7e64f091aba177da419#files-changed",
    "node_id" : "MDEzOlN0YXR1c0NvbnRleHQxMDg0MzE4ODU5Nw==",
    "description" : "100% (90% threshold)",
    "updated_at" : "2020-09-23T08:21:53Z",
    "avatar_url" : "https:\/\/avatars3.githubusercontent.com\/oa\/26380?v=4",
    "url" : "https:\/\/api.github.com\/repos\/:ORG\/:REPO\/statuses\/2961d4224c8572548342b7e64f091aba177da419"
  },
  {
    "state" : "success",
    "creator" : {
      "id" : 272616,
      "organizations_url" : "https:\/\/api.github.com\/users\/:ORG\/orgs",
      "received_events_url" : "https:\/\/api.github.com\/users\/:ORG\/received_events",
      "following_url" : "https:\/\/api.github.com\/users\/:ORG\/following{\/other_user}",
      "login" : ":ORG",
      "avatar_url" : "https:\/\/avatars1.githubusercontent.com\/u\/272616?v=4",
      "url" : "https:\/\/api.github.com\/users\/:ORG",
      "node_id" : "MDQ6VXNlcjI3MjYxNg==",
      "subscriptions_url" : "https:\/\/api.github.com\/users\/:ORG\/subscriptions",
      "repos_url" : "https:\/\/api.github.com\/users\/:ORG\/repos",
      "type" : "User",
      "html_url" : "https:\/\/github.com\/:ORG",
      "events_url" : "https:\/\/api.github.com\/users\/:ORG\/events{\/privacy}",
      "site_admin" : false,
      "starred_url" : "https:\/\/api.github.com\/users\/:ORG\/starred{\/owner}{\/repo}",
      "gists_url" : "https:\/\/api.github.com\/users\/:ORG\/gists{\/gist_id}",
      "gravatar_id" : "",
      "followers_url" : "https:\/\/api.github.com\/users\/:ORG\/followers"
    },
    "id" : 10843101579,
    "created_at" : "2020-09-23T08:13:21Z",
    "context" : "codeclimate",
    "target_url" : "https:\/\/codeclimate.com\/repos\/0000653a329424025b0003b0\/pull\/323",
    "node_id" : "MDEzOlN0YXR1c0NvbnRleHQxMDg0MzEwMTU3OQ==",
    "description" : "All good!",
    "updated_at" : "2020-09-23T08:13:21Z",
    "avatar_url" : "https:\/\/avatars3.githubusercontent.com\/oa\/26380?v=4",
    "url" : "https:\/\/api.github.com\/repos\/:ORG\/:REPO\/statuses\/2961d4224c8572548342b7e64f091aba177da419"
  },
  {
    "state" : "pending",
    "creator" : {
      "id" : 272616,
      "organizations_url" : "https:\/\/api.github.com\/users\/:ORG\/orgs",
      "received_events_url" : "https:\/\/api.github.com\/users\/:ORG\/received_events",
      "following_url" : "https:\/\/api.github.com\/users\/:ORG\/following{\/other_user}",
      "login" : ":ORG",
      "avatar_url" : "https:\/\/avatars1.githubusercontent.com\/u\/272616?v=4",
      "url" : "https:\/\/api.github.com\/users\/:ORG",
      "node_id" : "MDQ6VXNlcjI3MjYxNg==",
      "subscriptions_url" : "https:\/\/api.github.com\/users\/:ORG\/subscriptions",
      "repos_url" : "https:\/\/api.github.com\/users\/:ORG\/repos",
      "type" : "User",
      "html_url" : "https:\/\/github.com\/:ORG",
      "events_url" : "https:\/\/api.github.com\/users\/:ORG\/events{\/privacy}",
      "site_admin" : false,
      "starred_url" : "https:\/\/api.github.com\/users\/:ORG\/starred{\/owner}{\/repo}",
      "gists_url" : "https:\/\/api.github.com\/users\/:ORG\/gists{\/gist_id}",
      "gravatar_id" : "",
      "followers_url" : "https:\/\/api.github.com\/users\/:ORG\/followers"
    },
    "id" : 10843095531,
    "created_at" : "2020-09-23T08:12:40Z",
    "context" : "codeclimate",
    "target_url" : "https:\/\/codeclimate.com\/repos\/0000653a329424025b0003b0\/pull\/323",
    "node_id" : "MDEzOlN0YXR1c0NvbnRleHQxMDg0MzA5NTUzMQ==",
    "description" : "Code Climate is analyzing this code.",
    "updated_at" : "2020-09-23T08:12:40Z",
    "avatar_url" : "https:\/\/avatars3.githubusercontent.com\/oa\/26380?v=4",
    "url" : "https:\/\/api.github.com\/repos\/:ORG\/:REPO\/statuses\/2961d4224c8572548342b7e64f091aba177da419"
  }
]

Is this something expected?

Thanks

1 Like

@sigfrid ,

Please try using the “List check runs for a Git reference” API. It should work.

Hi @brightran
The check runs API works.
It’s a pity the GitHub Actions checks and third-party statuses don’t share the same API.

Have a good one,
Sih

1 Like