octomachinery.routing.webhooks_dispatcher module#
GitHub webhook events dispatching logic.
- async octomachinery.routing.webhooks_dispatcher.route_github_event(*, github_event: GitHubEvent, github_app: GitHubApp) Iterable[Any] [source]#
Dispatch GitHub event to corresponding 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.