swh.lister.gitea.lister module

class swh.lister.gitea.lister.GiteaLister(scheduler: swh.scheduler.interface.SchedulerInterface, url: str, instance: Optional[str] = None, api_token: Optional[str] = None, page_size: int = 50, credentials: Optional[Dict[str, Dict[str, List[Dict[str, str]]]]] = None)[source]

Bases: swh.lister.gogs.lister.GogsLister

List origins from Gitea.

Gitea API documentation: https://try.gitea.io/api/swagger

The API does pagination and provides navigation URLs through the ‘Link’ header. The default value for page size is the maximum value observed on the instances accessible at https://try.gitea.io/api/v1/ and https://codeberg.org/api/v1/.

LISTER_NAME: str = 'gitea'
on_anonymous_mode()[source]