swh.lister.phabricator.lister module#
- class swh.lister.phabricator.lister.PhabricatorLister(scheduler: SchedulerInterface, url: str, instance: str | None = None, api_token: str | None = None, credentials: Dict[str, Dict[str, List[Dict[str, str]]]] | None = None, max_origins_per_page: int | None = None, max_pages: int | None = None, enable_origins: bool = True)[source]#
Bases:
StatelessLister
[List
[Dict
[str
,Any
]]]List all repositories hosted on a Phabricator instance.
- Parameters:
url – base URL of a phabricator forge (for instance https://forge.softwareheritage.org)
instance – string identifier for the listed forge, URL network location will be used if not provided
api_token – authentication token for Conduit API
- API_REPOSITORY_PATH = '/api/diffusion.repository.search'#
- get_request_params(after: str | None) Dict[str, str] [source]#
Get the query parameters for the request.
- static filter_params(params: Dict[str, str]) Dict[str, str] [source]#
Filter the parameters for debug purposes