-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Getting issue index from times
data
#8513
Comments
So I ended up fetching all issues with I can fetch all PR's from Sure the number of the PR matches the number of the Issue, so in theory I could fetch each issue with the same number as the PR and then get its ID to complete my lookup table. Seems a lot of fetching... :/ |
I think maybe |
There are also several other API endpoints that return similar data. I looks like {owner} and {repo} are in the URL for all but
|
times
data
@6543 Cool thanks, i'm watching the PR and am happy to test, let me know when you're ready for feedback. I think I added enough info above, give me a shout if you've got questions. |
Gitea Version: 1.10.0+dev-409-g46a12f196
I'm using the
/repos/{owner}/{repo}/times
endpoint that returns like this:The above only gives the issue ID, and I cant find any way to then get the issue as the
/repos/{owner}/{repo}/issues/{index}
endpoint is wanting a issue number rather than the id.Is there any way to get an issue by its ID rather than its Number?
Or to convert an ID to a Number?
Maybe the times endpoint should return the number as well as id?
The text was updated successfully, but these errors were encountered: