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

Support gitea/forgejo #368

Open
newtykip opened this issue Dec 28, 2024 · 0 comments
Open

Support gitea/forgejo #368

newtykip opened this issue Dec 28, 2024 · 0 comments

Comments

@newtykip
Copy link

Is your feature request related to a problem? Please describe.
Currently, the CLI only supports repositories hosted on GitHub and GitLab. Many of us primarily use Gitea/Forgejo-based git servers, and I think it would be nice for the CLI to support repositories hosted on them.

Describe the solution you'd like
Add support for fetching user information and contributor data from Gitea/Forgejo using its API.

Describe alternatives you've considered
To my knowledge, there is currently no functional workaround.

Additional context
You can fetch a user on a Gitea server by their username using the /users/{username} endpoint (swagger)

Gitea does not explicitly have an endpoint to list all contributors of a repository, however, you can get a paginated list of all commits using the /repos/{owner}/{repo}/commits endpoint (swagger). Perhaps we could fetch all the pages and find all the collaborators using that?

The Forgejo API mirrors that of Gitea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant