split(" ") -> split()

This commit is contained in:
Ori Kotek
2023-07-19 17:14:55 +03:00
parent 577f24d107
commit ee2c00abeb

View File

@ -13,7 +13,7 @@ class PRAgent:
pass
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"]):
await PRReviewer(pr_url, is_answer=True).review()
elif any(cmd == action for cmd in ["/review", "/review_pr", "/reflect_and_review"]):