Source code for swh.lister.forgejo.lister
# Copyright (C) 2018-2026 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import logging
from ..gitea.lister import GiteaLister
logger = logging.getLogger(__name__)
[docs]
class ForgejoLister(GiteaLister):
"""List origins from Forgejo.
Forgejo API documentation: https://forgejo.org/docs/latest/user/api-usage/
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.next.forgejo.org/api/v1/ and https://codeberg.org/api/v1/.
"""
LISTER_NAME = "forgejo"