octomachinery.routing.webhooks_dispatcher module

GitHub webhook events dispatching logic.

async octomachinery.routing.webhooks_dispatcher.route_github_event(*, github_event: octomachinery.github.models.events.GitHubEvent, github_app: octomachinery.github.api.app_client.GitHubApp)None[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.