Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: unify signature of Webhook.__call__ #74904

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading