Allow pagination for git tree API #2810

Closed
opened 2025-11-02 04:49:14 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @richmahn on GitHub (Jan 25, 2019).

The git tree API only allows showing the first 1000 files of a repo. GitHub does not allow showing more, understandable for a free, public Git service, requiring the user/app to clone the whole repo. Yet this is exactly what my organization would like to avoid when showing a list of the files a user can get in an app. Better is to add paging where the truncated field in the response is true until we get to the last page.

Originally created by @richmahn on GitHub (Jan 25, 2019). The git tree API only allows showing the first 1000 files of a repo. GitHub does not allow showing more, understandable for a free, public Git service, requiring the user/app to clone the whole repo. Yet this is exactly what my organization would like to avoid when showing a list of the files a user can get in an app. Better is to add paging where the `truncated` field in the response is true until we get to the last page.
GiteaMirror added the type/featureissue/stale labels 2025-11-02 04:49:14 -06:00
Author
Owner

@stale[bot] commented on GitHub (Mar 30, 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 (Mar 30, 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

@lunny commented on GitHub (Mar 31, 2019):

Closed by #5838

@lunny commented on GitHub (Mar 31, 2019): Closed by #5838
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2810