Feature Request: add pagination and sort on Issue Comments API #2942

Open
opened 2025-11-02 04:54:50 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @meteorlxy on GitHub (Feb 20, 2019).

Description

I'm developing a project to get/post comments via the issue system.

Hope gitea can support these features (with some info of other platform):

  • Pagination
    • Github: use universal pagination - REF - only have Link header, which lacks useful infomation
    • Gitlab: use universal pagination - REF - have other pagination headers besides Link header, which provide all the related information of pagination
    • Bitbucker: use universal pagination - REF - do not have headers
  • Sorting comments:
    • Github: only accpet since param on issue comments API, similar to current version of gitea - REF - (I've sent feedback to Github but they said they might not fix it in the near future)
    • Gitlab: use params sort, order_by - REF
    • Bitbucket: use universal filtering and sorting - REF1 - REF2
Originally created by @meteorlxy on GitHub (Feb 20, 2019). ## Description I'm developing a [project](https://github.com/meteorlxy/vssue/issues/7) to get/post comments via the issue system. Hope gitea can support these features (with some info of other platform): - Pagination - Github: use universal pagination - [REF](https://developer.github.com/v3/#pagination) - only have `Link` header, which lacks useful infomation - Gitlab: use universal pagination - [REF](https://docs.gitlab.com/ce/api/README.html#pagination) - have other pagination headers besides `Link` header, which provide all the related information of pagination - Bitbucker: use universal pagination - [REF](https://developer.atlassian.com/bitbucket/api/2/reference/meta/pagination) - do not have headers - Sorting comments: - Github: only accpet `since` param on issue comments API, similar to current version of gitea - [REF](https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue) - (I've sent feedback to Github but they said they might not fix it in the near future) - Gitlab: use params `sort`, `order_by` - [REF](https://docs.gitlab.com/ce/api/notes.html#list-project-issue-notes) - Bitbucket: use universal filtering and sorting - [REF1](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/issues/%7Bissue_id%7D/comments#get) - [REF2](https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering)
GiteaMirror added the issue/confirmedtype/enhancementmodifies/api labels 2025-11-02 04:54:50 -06:00
Author
Owner

@stale[bot] commented on GitHub (Apr 21, 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 (Apr 21, 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 (Apr 10, 2020):

@meteorlxy paggination for IssueComments will be in v1.12
look at the demo: https://try.gitea.io/api/swagger#/issue/issueGetRepoComments

@6543 commented on GitHub (Apr 10, 2020): @meteorlxy paggination for IssueComments will be in v1.12 look at the demo: https://try.gitea.io/api/swagger#/issue/issueGetRepoComments
Author
Owner

@lunny commented on GitHub (Sep 3, 2020):

So only sort is absent on this issue?

@lunny commented on GitHub (Sep 3, 2020): So only sort is absent on this issue?
Author
Owner

@noerw commented on GitHub (Dec 16, 2020):

@noerw commented on GitHub (Dec 16, 2020): - [`/repos/{owner}/{repo}/issues/comments`](https://try.gitea.io/api/swagger#/issue/issueGetRepoComments) supports pagination - [`/repos/{owner}/{repo}/issues/{index}/comments`](https://try.gitea.io/api/swagger#/issue/issueGetComments) does NOT support pagination neither support sorting
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2942