Skip to content

Commit

Permalink
fix: correctly handle org webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Jan 24, 2025
1 parent dc7eb21 commit cd3864e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pydisgit/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
router = WebhookRouter()

@router.handler('ping')
def ping(zen, hook, repository, sender, organization) -> EmbedBody:
def ping(zen, hook, repository, sender, organization=None) -> EmbedBody:
is_org = hook['type'] == 'Organization'
name = organization['login'] if is_org else repository['full_name']

Expand Down

0 comments on commit cd3864e

Please sign in to comment.