mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-07 06:10:39 +08:00
Msg is mandatory field for the request
This commit is contained in:
@ -30,7 +30,7 @@ class Action(str, Enum):
|
||||
class Item(BaseModel):
|
||||
refspec: str
|
||||
project: str
|
||||
msg: str = ""
|
||||
msg: str
|
||||
|
||||
|
||||
@router.post("/api/v1/gerrit/{action}")
|
||||
@ -46,7 +46,7 @@ async def handle_gerrit_request(action: Action, item: Item):
|
||||
)
|
||||
await PRAgent().handle_request(
|
||||
f"{item.project}:{item.refspec}",
|
||||
f"/{action.value} {item.msg.strip()}"
|
||||
f"/{item.msg.strip()}"
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user