fix: Resolve workflow syntax error in ai-comment-reply.yml #13
@@ -251,10 +251,6 @@ python main.py chat owner/repo "Explain this bug" --issue 123
|
|||||||
Posts a response comment:
|
Posts a response comment:
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
**Note:** This review was generated by an AI assistant...
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
Based on my analysis of the codebase, rate limiting is configured in
|
Based on my analysis of the codebase, rate limiting is configured in
|
||||||
`tools/ai-review/config.yml` under the `enterprise.rate_limit` section:
|
`tools/ai-review/config.yml` under the `enterprise.rate_limit` section:
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ from dataclasses import dataclass, field
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from clients.gitea_client import GiteaClient
|
from clients.gitea_client import GiteaClient
|
||||||
from clients.llm_client import LLMClient, LLMResponse
|
from clients.llm_client import LLMClient, LLMResponse
|
||||||
|
|
||||||
@@ -46,11 +45,7 @@ class BaseAgent(ABC):
|
|||||||
AI_MARKER = "<!-- AI_CODE_REVIEW -->"
|
AI_MARKER = "<!-- AI_CODE_REVIEW -->"
|
||||||
|
|
||||||
# Disclaimer text
|
# Disclaimer text
|
||||||
AI_DISCLAIMER = (
|
AI_DISCLAIMER = ""
|
||||||
"**Note:** This review was generated by an AI assistant. "
|
|
||||||
"While it aims to be accurate and helpful, it may contain mistakes "
|
|
||||||
"or miss important issues. Please verify all findings before taking action."
|
|
||||||
)
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|||||||
@@ -484,6 +484,5 @@ Be constructive and actionable. Focus on the most impactful improvements.
|
|||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
||||||
lines.append("---")
|
lines.append("---")
|
||||||
lines.append(f"*Generated by AI Codebase Agent*")
|
|
||||||
|
|
||||||
return "\n".join(lines)
|
return "\n".join(lines)
|
||||||
|
|||||||
@@ -14,11 +14,7 @@ CFG = yaml.safe_load(open(f"{ROOT}/config.yml"))
|
|||||||
AI_MARKER = "<!-- AI_CODE_REVIEW -->"
|
AI_MARKER = "<!-- AI_CODE_REVIEW -->"
|
||||||
|
|
||||||
# Disclaimer text to prepend
|
# Disclaimer text to prepend
|
||||||
AI_DISCLAIMER = (
|
AI_DISCLAIMER = ""
|
||||||
"**Note:** This review was generated by an AI assistant. "
|
|
||||||
"While it aims to be accurate and helpful, it may contain mistakes "
|
|
||||||
"or miss important issues. Please verify all findings before taking action."
|
|
||||||
)
|
|
||||||
|
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
# Helper functions
|
# Helper functions
|
||||||
|
|||||||
Reference in New Issue
Block a user