octomachinery.routing.webhooks_dispatcher module

GitHub webhook events dispatching logic.

async octomachinery.routing.webhooks_dispatcher.route_github_event(*, github_event, github_app)[source]

Dispatch GitHub event to corresponsing handlers.

Set up RUNTIME_CONTEXT before doing that. This is so the concrete event handlers have access to the API client and flags in runtime.