swh.web.save_origin_webhooks.gitlab module#

class swh.web.save_origin_webhooks.gitlab.GitlabOriginSaveWebhookReceiver[source]#

Bases: OriginSaveWebhookReceiver

FORGE_TYPE: str = 'GitLab'#
WEBHOOK_GUIDE_URL: str = 'https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#configure-a-webhook-in-gitlab'#
REPO_TYPES: str = 'git'#
is_forge_request(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.