Getting commits or pr mentioned in issue


Given a link to an issue, I am trying to retrieve commits and/or pull requests that are mentioned in any of the comments of the issue.


Issue: ucloudvain/openjpeg#1126
Commit @619e1b0

The commit is mentioned in one of the comments.

Pull Request:

Issue: ARMmbed/mbed-os#11803
PR @12146

The PR is mentioned in one of the comments.

What I tried

I tried exploring all the different IssueTimelineItems to get to this information but without any success. Is it possible to retrieve this information using GraphQL API v4?

I suspect that what you’re trying to achieve isn’t possible without parsing the contents of the comments themselves. If you wouldn’t mind sharing the query that you’ve got so far though, I can use that as a place to start and see what else I can find though?

Let me know.