ClosedEvent doesn't reference the PR that closed it



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.


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


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