Skip to content

Commit

Permalink
ref: unify signature of Webhook.__call__ (#74904)
Browse files Browse the repository at this point in the history
<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry authored Jul 24, 2024
1 parent 3618367 commit 2225851
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sentry_plugins/github/webhooks/events/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Webhook:
def __call__(self, event, organization=None):
def __call__(self, event, organization):
raise NotImplementedError


Expand Down
2 changes: 1 addition & 1 deletion src/sentry_plugins/github/webhooks/events/installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class InstallationEventWebhook(Webhook):
# https://developer.github.com/v3/activity/events/types/#installationevent
def __call__(self, event, organization=None):
def __call__(self, event, organization):
action = event["action"]
installation = event["installation"]
# TODO(jess): handle uninstalls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

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

integration = integration_service.get_integration(
Expand Down

0 comments on commit 2225851

Please sign in to comment.