fix for commenting on chat, and updating docs.
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 20s

This commit is contained in:
2025-12-28 14:44:44 +00:00
parent 69d9963597
commit 55230d9f69
3 changed files with 539 additions and 48 deletions

View File

@@ -153,14 +153,17 @@ class IssueAgent(BaseAgent):
comment = context.event_data.get("comment", {})
issue_index = issue.get("number")
comment_body = comment.get("body", "")
comment_author = comment.get("user", {}).get("login", "user")
# Parse command from mention
command = self._parse_command(comment_body)
if command:
response = self._handle_command(context, issue, command)
# Add user mention at the top
response_with_mention = f"@{comment_author}\n\n{response}"
self.gitea.create_issue_comment(
context.owner, context.repo, issue_index, response
context.owner, context.repo, issue_index, response_with_mention
)
return AgentResult(
success=True,