Skip to content

Commit 2a88ade

Browse files
asottile-sentryChristinarlong
authored andcommitted
ref: unify signature of Webhook.__call__ (#74904)
<!-- Describe your PR here. -->
1 parent 6f92514 commit 2a88ade

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/sentry_plugins/github/webhooks/events/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class Webhook:
2-
def __call__(self, event, organization=None):
2+
def __call__(self, event, organization):
33
raise NotImplementedError
44

55

src/sentry_plugins/github/webhooks/events/installation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class InstallationEventWebhook(Webhook):
99
# https://developer.github.com/v3/activity/events/types/#installationevent
10-
def __call__(self, event, organization=None):
10+
def __call__(self, event, organization):
1111
action = event["action"]
1212
installation = event["installation"]
1313
# TODO(jess): handle uninstalls

src/sentry_plugins/github/webhooks/events/installation_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class InstallationRepositoryEventWebhook(Webhook):
99
# https://developer.github.com/v3/activity/events/types/#installationrepositoriesevent
10-
def __call__(self, event, organization=None):
10+
def __call__(self, event, organization):
1111
installation = event["installation"]
1212

1313
integration = integration_service.get_integration(

0 commit comments

Comments
 (0)