Skip to content

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sentry/integrations/gitlab/webhooks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from rest_framework.request import Request
1212
from rest_framework.response import Response
1313

14+
from sentry.integrations.utils.cleanup import clear_tags_and_context
1415
from sentry.models import Commit, CommitAuthor, Integration, PullRequest, Repository
1516
from sentry.plugins.providers import IntegrationRepositoryProvider
1617
from sentry.utils import json
@@ -194,6 +195,7 @@ def dispatch(self, request: Request, *args, **kwargs) -> Response:
194195
return super().dispatch(request, *args, **kwargs)
195196

196197
def post(self, request: Request) -> Response:
198+
clear_tags_and_context()
197199
extra = {
198200
# This tells us the Gitlab version being used (e.g. current gitlab.com version -> GitLab/15.4.0-pre)
199201
"user-agent": request.META.get("HTTP_USER_AGENT"),

0 commit comments

Comments
 (0)