[API] Best way for issues and PRs and it's count #3254

Closed
opened 2025-11-02 05:05:34 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @mmarif4u on GitHub (Apr 27, 2019).

Gitea 1.8.0

Currently reop info API return open issue count of issues.
https://try.gitea.io/api/swagger#/repository/repoGet

While issues API return both PRs and issues.
https://try.gitea.io/api/swagger#/issue/issueListIssues

If let's say there are 10 open issues and 2 open PRs, open issue count is 10. While issues API return 12 records inlcuding PRs.

Just an idea, inlucde the open PRs in the count OR exlucde PRs from the issues API.

Originally created by @mmarif4u on GitHub (Apr 27, 2019). Gitea 1.8.0 Currently reop info API return open issue count of issues. https://try.gitea.io/api/swagger#/repository/repoGet While issues API return both PRs and issues. https://try.gitea.io/api/swagger#/issue/issueListIssues If let's say there are 10 open issues and 2 open PRs, open issue count is 10. While issues API return 12 records inlcuding PRs. Just an idea, inlucde the open PRs in the count OR exlucde PRs from the issues API.
GiteaMirror added the issue/confirmedmodifies/api labels 2025-11-02 05:05:34 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jun 26, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jun 26, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@6543 commented on GitHub (Sep 17, 2020):

with https://github.com/go-gitea/gitea/pull/12275 X-Total-Count header can be used

@6543 commented on GitHub (Sep 17, 2020): with https://github.com/go-gitea/gitea/pull/12275 `X-Total-Count` header can be used
Author
Owner

@6543 commented on GitHub (Jun 16, 2021):

@mmarif4u does #12275 close this?

@6543 commented on GitHub (Jun 16, 2021): @mmarif4u does #12275 close this?
Author
Owner

@mmarif4u commented on GitHub (Jun 17, 2021):

@6543 I guess this is pretty much resolved.

@mmarif4u commented on GitHub (Jun 17, 2021): @6543 I guess this is pretty much resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3254