Skip to content
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] Best way for issues and PRs and it's count #6774

Closed
mmarif4u opened this issue Apr 27, 2019 · 4 comments
Closed

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

mmarif4u opened this issue Apr 27, 2019 · 4 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them

Comments

@mmarif4u
Copy link

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.

@mmarif4u mmarif4u changed the title Best way for issues and PRs and it's count [API ]Best way for issues and PRs and it's count Apr 27, 2019
@mmarif4u mmarif4u changed the title [API ]Best way for issues and PRs and it's count [API] Best way for issues and PRs and it's count Apr 27, 2019
@techknowlogick techknowlogick added the modifies/api This PR adds API routes or modifies them label Apr 27, 2019
@stale
Copy link

stale bot commented 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 stale bot added the issue/stale label Jun 26, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Jun 26, 2019
@stale stale bot removed the issue/stale label Jun 26, 2019
@6543
Copy link
Member

6543 commented Sep 17, 2020

with #12275 X-Total-Count header can be used

@6543
Copy link
Member

6543 commented Jun 16, 2021

@mmarif4u does #12275 close this?

@mmarif4u
Copy link
Author

@6543 I guess this is pretty much resolved.

@6543 6543 closed this as completed Jun 17, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them
Projects
None yet
Development

No branches or pull requests

4 participants