coophub icon indicating copy to clipboard operation
coophub copied to clipboard

Support Gitea API for self-hosted git hosting

Open decentral1se opened this issue 4 years ago • 5 comments

Hi folks! Autonomic.zone want to join but we've got our git hosting setup on https://git.autonomic.zone which is a self hosted gitea instance. As far as I know, this app doesn't support reading the Gitea API yet? There seems to be decent docs for it though https://docs.gitea.io/en-us/api-usage. Would be cool to get this sorted! Thanks!

decentral1se avatar Apr 06 '20 10:04 decentral1se

Thank you @decentral1se , I didn't know about Gitea, we have to read the docs and discuss it for a future integration.

I'll keep you posted here.

pbrudnick avatar Apr 07 '20 13:04 pbrudnick

https://git.autonomic.zone/api/v1/orgs/autonomic-cooperative/ https://git.autonomic.zone/api/v1/orgs/autonomic-cooperative/repos https://git.autonomic.zone/api/v1/repos/autonomic-cooperative/keycloak https://git.autonomic.zone/api/v1/repos/autonomic-cooperative/keycloak/topics

missing languages

pbrudnick avatar Apr 07 '20 15:04 pbrudnick

I see there's an empty language key and also a languages_url with a URL that returns languages:

In our Gitea version:

https://gitea.sutty.coop.ar/api/v1/orgs/Sutty/repos https://gitea.sutty.coop.ar/api/v1/repos/Sutty/haini.sh/languages

sutty-coop avatar Nov 30 '22 16:11 sutty-coop

hey comrades, anything we @ autonomic can do to help move this along? :pray:

3-w-c avatar Apr 17 '24 01:04 3-w-c

Hi there! thank you folks! We need to add a new backend similar to the git.coop one: https://github.com/fiqus/coophub/blob/2af43544bedc1982bb6287343a06beaf7124cf60/lib/coophub/backends/git_coop.ex

As it's done, we need one backend per server, so autonomic and sutty as separated backends, in the future it could be one gitea backend support for multiple gitea servers...

You are welcome and happy to code review future PRs :)

pbrudnick avatar Apr 17 '24 13:04 pbrudnick