fix: validate one-liner suggestions to prevent repeating existing code

This commit is contained in:
mrT23
2025-03-06 08:18:52 +02:00
parent ca286b8dc0
commit 4c0e371238
3 changed files with 33 additions and 4 deletions

View File

@ -89,7 +89,7 @@ class PRAgent:
action = action.lstrip("/").lower()
if action not in command2class:
get_logger().error(f"Unknown command: {action}")
get_logger().warning(f"Unknown command: {action}")
return False
with get_logger().contextualize(command=action, pr_url=pr_url):
get_logger().info("PR-Agent request handler started", analytics=True)