protections

This commit is contained in:
mrT23
2024-04-12 20:32:47 +03:00
parent 654f88b98a
commit a4680ded93
2 changed files with 42 additions and 23 deletions

View File

@ -73,6 +73,9 @@ class PRAgent:
args = update_settings_from_args(args)
action = action.lstrip("/").lower()
if action not in command2class:
get_logger().debug(f"Unknown command: {action}")
return False
with get_logger().contextualize(command=action):
get_logger().info("PR-Agent request handler started", analytics=True)
if action == "reflect_and_review":