Skip to main content
Register handlers that run after mesa.webhooks.receive(...) verifies and validates an incoming webhook request.
Register the same handler for multiple event names:

Options

WebhookEventName | WebhookEventName[]
required
Event name or event names to handle.
WebhookHandler
required
Function called with the typed event. It may return void or a promise.

Event names

Supported event names include repo.created, repo.updated, repo.deleted, bookmark.created, bookmark.deleted, bookmark.moved, bookmark.merged, change.created, change.evolved, push, sync.queued, sync.in_progress, sync.completed, and sync.failed.

Response

Returns void.

Handler errors

Handlers are run during mesa.webhooks.receive(...). If one or more handlers reject, receive throws an AggregateError after all matching handlers have settled.