Commit e144d9d6 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

gh: decorate decorators

parent 5f18828d
Pipeline #15353 failed with stage
in 2 minutes and 16 seconds
......@@ -7,7 +7,7 @@ from hashlib import sha1
from ipaddress import ip_address, ip_network
from json import loads
from asgiref.sync import sync_to_async
from asgiref.sync import sync_to_async, async_to_sync
from django.conf import settings
from django.core.mail import mail_admins
from django.http import HttpRequest
......@@ -244,7 +244,9 @@ async def pipeline(request: HttpRequest, rep: str) -> HttpResponse:
return HttpResponse(rep)
async def webhook(request: HttpRequest) -> HttpResponse:
Process request incoming from a github webhook.
......@@ -291,7 +293,9 @@ async def webhook(request: HttpRequest) -> HttpResponse:
return HttpResponseForbidden('event not found')
async def gl_webhook(request: HttpRequest) -> HttpResponse:
"""Process request incoming from a gitlab webhook."""
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment