octomachinery.routing.default_router module¶

Default GitHub event dispatcher.

octomachinery.routing.default_router.WEBHOOK_EVENTS_ROUTER = <octomachinery.routing.routers.ConcurrentRouter object>¶

An event dispatcher for webhooks.

async octomachinery.routing.default_router.dispatch_event(event: octomachinery.github.models.events.GitHubEvent, *args: Any, **kwargs: Any) → None¶

Invoke coroutine callbacks for the given event together.

octomachinery.routing.default_router.process_event(event_type: str, **data_detail: Any) → Callable[[Callable[[…], Awaitable[None]]], Callable[[…], Awaitable[None]]]¶

Decorator to apply the add() method to a function.

octomachinery.routing.default_router.process_event_actions(event_name, actions=None)[source]¶

Subscribe to multiple events.