CI events flow simplified

This commit is contained in:
Piotr Dec 2025-11-01 23:02:28 +01:00
parent 29dfc13a48
commit 34ee5f8754
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
7 changed files with 59 additions and 174 deletions

View file

@ -1,15 +1,10 @@
from injectable import inject
from app.core.core import WebhookProcessor
from app.events import SimpleEventBus
from app.core.woodpecker import Woodpecker
class AutowireSupport:
@staticmethod
def webhook_processor():
return inject(WebhookProcessor)
@staticmethod
def event_bus():
return inject(SimpleEventBus)
def woodpecker():
return inject(Woodpecker)