Unable to fetch a commit's statuses *uncollapsed* by context


#1

Given a query like

{
  repository(owner: "org", name:"repo") {
    object(oid: "524d23eee1e7b21e2cd4788cb7e4a354d0a78f13") {
      ... on Commit {
        status {
          contexts {
            context
            state
          }
        }
      }
    }
  }
}

I’d expect to get a list of every commit status ever published to the commit, i.e., what https://developer.github.com/enterprise/2.13/v3/repos/statuses/#list-statuses-for-a-specific-ref provides. For example:

{
  "data": {
    "repository": {
      "object": {
        "status": {
          "contexts": [
            {
              "context": "my-ci",
              "state": "success"
            },
            {
              "context": "my-ci",
              "state": "pending"
            },
            {
              "context": "my-ci",
              "state": "failure"
            },
            {
              "context": "my-ci",
              "state": "pending"
            },
            {
              "context": "some-other-thing",
              "state": "success"
            },
          ]
        }
      }
    }
  }
}

However, it appears that querying for contexts collapses the statuses by context similar to what https://developer.github.com/enterprise/2.13/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref does. Therefore I’m instead seeing:

{
  "data": {
    "repository": {
      "object": {
        "status": {
          "contexts": [
            {
              "context": "my-ci",
              "state": "success"
            },
            {
              "context": "some-other-thing",
              "state": "success"
            },
          ]
        }
      }
    }
  }
}

Is there a way to express the query I want without resorting to hitting the REST API? In my particular case I’m dealing with (potentially) hundreds of commits so I’d rather not make an additional request to fetch the status history for each commit.

I’m using Github Enterprise 2.13.12.