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 repos doesn't return all repos #14698

Closed
2 of 6 tasks
mixman68 opened this issue Feb 16, 2021 · 2 comments
Closed
2 of 6 tasks

API repos doesn't return all repos #14698

mixman68 opened this issue Feb 16, 2021 · 2 comments

Comments

@mixman68
Copy link

  • Gitea version (or commit ref): 1.13.1
  • Git version: 2.20.5
  • Operating system: Debian Buster
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
      No enouth data
  • Log gist:

Description

The GET /api/v1/users/{user}/repos return only 30 repos max, so with Gitea jenkins plugin, i cannot choose my repo because i have 71 repos on my user
...

Screenshots

@jpraet
Copy link
Member

jpraet commented Feb 16, 2021

You could increase these properties in your app.ini:

[api]
; Max number of items in a page
MAX_RESPONSE_ITEMS = 50
; Default paging number of api
DEFAULT_PAGING_NUM = 30

But it would be best to report this issue on the Gitea jenkins plugin side as well, as they should make use of the pagination when fetching the repositories.

@jolheiser
Copy link
Member

There is a PR over at jenkinsci/gitea-plugin#25 to address this issue.

@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants