Reputation: 740
I have been looking around the GitHub API and couldn't find an endpoint which fetches me the issue details from just an Issue ID. The Issue ID(53454563) is different from an Issue number(#1,#2 etc.). Issue ID is the primary key of the Issue table.
From the GitHub API documentation, the way to fetch issue details is with a GET request to /repos/:owner/:repo/issues/:number. I'll need the issue number, the owner name and the repo name to fetch the details.
Is there a way to fetch issue details with just the issue Id?
Upvotes: 1
Views: 2980
Reputation: 1678
The GHTorrent project provides a relational table that uses ID
, which may be easier for you. There is also a BigQuery table with the same data, which I find easier to work with.
I'm not sure what has led you to have only the issue id, but by joining ght.issues
with Github's own tables on BigQuery, you might solve the problem without the Github API.
Upvotes: 0
Reputation: 18762
Is there a way to fetch issue details with just the issue Id?
No, not possible currently. You could do it with a repository ID and issue number, e.g. https://api.github.com/repositories/1725199/issues/1234.
Upvotes: 1