swh.web.save_origin_webhooks.generic_receiver module#

class swh.web.save_origin_webhooks.generic_receiver.OriginSaveWebhookReceiver[source]#

Bases: ABC

FORGE_TYPE: str#
WEBHOOK_GUIDE_URL: str#
REPO_TYPES: str#
abstract is_forge_request(request: Request) bool[source]#
is_ping_event(request: Request) bool[source]#
abstract is_push_event(request: Request) bool[source]#
abstract extract_repo_info(request: Request) Tuple[str, str, bool][source]#

Extract and return a tuple (repository_url, visit_type, private) from the forge webhook payload.