Skip to content

[Bug][Config-UI] Config-UI only lists public repos for a user #4448

@hezyin

Description

@hezyin

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

In v0.15, Config-UI uses /users/{username}/repos to list repos for a GitHub user. However, according to GitHub API, this endpoint only list public repos of that user: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-a-user

We should probably use this endpoint (/user/repos) instead: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-the-authenticated-user

What do you expect to happen

Users are able to see their private repos in Config-UI as long as their PAT has the right permission.

How to reproduce

See above

Anything else

No response

Version

v0.15.0

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

type/bugThis issue is a bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions