-
Notifications
You must be signed in to change notification settings - Fork 0
Chore/testing claude pr review #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔍 Code Review (by Claude)Code Review: Chore/testing claude pr reviewOverviewThis PR makes two changes:
Detailed Analysis1. DRY Principle ✅Status: Good
2. Best Practices
|
More cost-efficient for PR reviews, especially Dependabot summaries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
d25783b to
890f067
Compare
🔍 Code Review (by Claude)Code Review: PR - Chore/testing claude pr reviewOverviewThis PR changes the Claude AI model from Detailed Review1. DRY Principle ✅ AcceptableThe change itself doesn't introduce duplication, but I notice the model name is hardcoded. Consider: # Recommended: Configuration-based approach
# At the top of the file or in a config module
CLAUDE_MODEL = os.getenv("CLAUDE_MODEL", "claude-sonnet-4-5-20250929")
MAX_TOKENS = int(os.getenv("CLAUDE_MAX_TOKENS", "1500"))
def review_with_claude(pr_data):
prompt = build_review_prompt(pr_data)
message = client.messages.create(
model=CLAUDE_MODEL,
max_tokens=MAX_TOKENS,
messages=[
{"role": "user", "content": prompt}
]
)Benefits:
2. Best Practices
|
No description provided.