5959from sentry .scm .private .stream_producer import produce_event_to_scm_stream
6060from sentry .seer .autofix .webhooks import handle_github_pr_webhook_for_autofix
6161from sentry .seer .code_review .contributor_seats import track_contributor_seat
62- from sentry .seer .code_review .webhooks .handlers import (
63- handle_webhook_event as code_review_handle_webhook_event ,
64- )
6562from sentry .shared_integrations .exceptions import ApiError
6663from sentry .silo .base import SiloMode
6764from sentry .users .services .user .service import user_service
@@ -847,10 +844,7 @@ class PullRequestEventWebhook(GitHubWebhook):
847844 """https://developer.github.com/v3/activity/events/types/#pullrequestevent"""
848845
849846 EVENT_TYPE = IntegrationWebhookEventType .MERGE_REQUEST
850- WEBHOOK_EVENT_PROCESSORS = (
851- _handle_pr_webhook_for_autofix_processor ,
852- code_review_handle_webhook_event ,
853- )
847+ WEBHOOK_EVENT_PROCESSORS = (_handle_pr_webhook_for_autofix_processor ,)
854848
855849 def _handle (
856850 self ,
@@ -976,10 +970,7 @@ class CheckRunEventWebhook(GitHubWebhook):
976970 """
977971
978972 EVENT_TYPE = IntegrationWebhookEventType .CI_CHECK
979- WEBHOOK_EVENT_PROCESSORS = (
980- code_review_handle_webhook_event ,
981- handle_preprod_check_run_event ,
982- )
973+ WEBHOOK_EVENT_PROCESSORS = (handle_preprod_check_run_event ,)
983974
984975
985976class IssueCommentEventWebhook (GitHubWebhook ):
@@ -989,7 +980,7 @@ class IssueCommentEventWebhook(GitHubWebhook):
989980 """
990981
991982 EVENT_TYPE = IntegrationWebhookEventType .ISSUE_COMMENT
992- WEBHOOK_EVENT_PROCESSORS = (code_review_handle_webhook_event , )
983+ WEBHOOK_EVENT_PROCESSORS = ()
993984
994985
995986@all_silo_endpoint
@@ -1150,7 +1141,7 @@ def handle(self, request: HttpRequest) -> HttpResponse:
11501141 {
11511142 "event_type_hint" : request .headers .get (GITHUB_WEBHOOK_TYPE_HEADER_KEY ),
11521143 "event" : request .body .decode ("utf-8" ),
1153- "extra" : {},
1144+ "extra" : {"github_delivery_id" : github_delivery_id },
11541145 "received_at" : int (time .time ()),
11551146 "sentry_meta" : None ,
11561147 "type" : IntegrationProviderSlug .GITHUB .value ,
0 commit comments