Fix async defs and add events to import
This commit is contained in:
parent
f80d8b0751
commit
68c2fd8d23
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ import fastapi
|
||||||
from paho.mqtt.client import Client
|
from paho.mqtt.client import Client
|
||||||
|
|
||||||
# internal
|
# internal
|
||||||
from buzon.config import Configuration, Responder, EventPush
|
from buzon.config import Configuration, Responder, EventPush, EventFork, EventIssue
|
||||||
from buzon.util import loader, processor
|
from buzon.util import loader, processor
|
||||||
|
|
||||||
# basic vars and calls
|
# basic vars and calls
|
||||||
|
@ -108,7 +108,7 @@ async def push_event(event_data: EventPush):
|
||||||
response_model=Responder,
|
response_model=Responder,
|
||||||
responses={201: {'model': Responder}, 400: {'model': Responder}}
|
responses={201: {'model': Responder}, 400: {'model': Responder}}
|
||||||
)
|
)
|
||||||
async def fork_event(event_data: EventPush):
|
async def fork_event(event_data: EventFork):
|
||||||
"""
|
"""
|
||||||
Fork events for repositories
|
Fork events for repositories
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ async def fork_event(event_data: EventPush):
|
||||||
response_model=Responder,
|
response_model=Responder,
|
||||||
responses={201: {'model': Responder}, 400: {'model': Responder}}
|
responses={201: {'model': Responder}, 400: {'model': Responder}}
|
||||||
)
|
)
|
||||||
async def issue_event(event_data: EventPush):
|
async def issue_event(event_data: EventIssue):
|
||||||
"""
|
"""
|
||||||
Issues event for repositories that have issue activity
|
Issues event for repositories that have issue activity
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue