Gogs hosts git repositories so it will be easy to "load" it into swh.
It's base url is https://try.gogs.io/api/v1 and to get the projects by page the api is https://try.gogs.io/api/v1/repos/search (default limit is 10 results per page) and the next url can be found in the headers in "Link" (It returns two urls one is the url of next page and the second is the url of last page separated by comma and with some python logic it can be extracted easily). It requires you to have a token which I have downloaded and also you can limit the number of results. In their documentation they have written that they want their api to be like that of github V3 so I think implementation of gogs lister will be similar. The token needs to be sent as a parameter in the request.
- [x] D8160: Implement full-mode lister
- [x] D8218: Implement incremental-mode lister
- [x] T1721#88903: Run within docker-dev (on the developer's machine)
- [x] T1721#88915: Open upstream forge ticket to reference the gogs api misbehavior T4423
- [x] T4478: Deploy to staging
- [ ] Ask for public review
- [ ] If green light, deploy to production