-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
GET /orgs/{org}/repos
lists only repos of an organization that enable code
#28483
Comments
It's by design. Github also doesn't support list all repositories. https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-organization-repositories |
@lunny where in above link to github does it state that it doesn't in fact list all repositories? (it states that it returns all types by default) |
by the fact github doesn't has the concept of disabling codeview thus all repositories return code. |
seriously? so you call it ListRepos.. and it doesn't in fact list all repos - and you consider that a feature? a repo is MORE than code (in both gitea and github) - and in github you get ALL repos - unless you choose repos of a specific type. Suggested solution IMHO would be to: We'll gladly contribute a PR to remove the filtering out of repos that don't have "codeview" enabled - so it does what the docs say it does (and what you would expect). Or do you seriously mean that the codeview setting - decides wether or not it is in fact a repo? (and thus should decide if its shown in repolist endpoint) ? If so - pls. expain why its still shown in repolist in UI? If its shown in repolist in UI - it should be returned in repolist from API by default. |
We close issues that need feedback from the author if there were no new comments for a month. 🍵 |
This isn't waiting on feedback from me afaik? |
I do tend to agree that it seems rather weird that @KlavsKlavsen the issue was closed because the label was never removed. However, as I said, I consider this to be a bug as well, thus I'm reopening this issue and removing the label. |
GET /orgs/{org}/repos
lists only repos of an organization that enable code
Great. I'll ask @VicOsewe to submit a PR, removing the limitation (so docs can stay the same :) - she's also an employee of Obmondo.com |
…o-gitea#30817) We should be listing all repositories by default. Fixes go-gitea#28483.
Description
The REST API only returns repos with
codeview
enabled in the settings.Gitea Version
1.21.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Running inside Docker container.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: