ClosedEvent doesn't reference the PR that closed it

schema-request

#1

If you have an Issue that was closed by a Pull Request but is not referenced by the Commit for the Pull Request (an example: create-react-app/#89), you cannot determine that the Issue was closed by the Pull Request with the GraphQL API. The GitHub UI seems to know this, so I expect the information to be somewhere, but the ClosedEvent will only reference a commit.

What I’d expect to see on the ClosedEvent are actually two optional edges: one for the Commit and one for PullRequest.


#2

I’ve added this request to our internal tracker to discuss!


#3

This is not something that is supported in the REST API / webhooks either. I’d be glad to have this either in the v3 or v4 API, as it would help doing something like https://github.com/coq/bot/issues/7.