swh.web.save_origin_webhooks.github module# class swh.web.save_origin_webhooks.github.GitHubOriginSaveWebhookReceiver[source]# Bases: OriginSaveWebhookReceiver FORGE_TYPE: str = 'GitHub'# WEBHOOK_GUIDE_URL: str = 'https://docs.github.com/en/developers/webhooks-and-events/webhooks/creating-webhooks#setting-up-a-webhook'# REPO_TYPES: str = 'git'# is_forge_request(request: Request) → bool[source]# is_ping_event(request: Request) → bool[source]# is_push_event(request: Request) → bool[source]# 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.