fix for commenting on chat, and updating docs.
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 20s
All checks were successful
Enterprise AI Code Review / ai-review (pull_request) Successful in 20s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user