mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 21:00:40 +08:00
split(" ") -> split()
This commit is contained in:
@ -13,7 +13,7 @@ class PRAgent:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
async def handle_request(self, pr_url, request) -> bool:
|
async def handle_request(self, pr_url, request) -> bool:
|
||||||
action, *args = request.split(" ")
|
action, *args = request.strip().split()
|
||||||
if any(cmd == action for cmd in ["/answer"]):
|
if any(cmd == action for cmd in ["/answer"]):
|
||||||
await PRReviewer(pr_url, is_answer=True).review()
|
await PRReviewer(pr_url, is_answer=True).review()
|
||||||
elif any(cmd == action for cmd in ["/review", "/review_pr", "/reflect_and_review"]):
|
elif any(cmd == action for cmd in ["/review", "/review_pr", "/reflect_and_review"]):
|
||||||
|
Reference in New Issue
Block a user