Skip to content

Commit

Permalink
Merge pull request #98 from PierreGode/PierreGode-patch-4
Browse files Browse the repository at this point in the history
Update review.yml
  • Loading branch information
PierreGode authored Dec 10, 2024
2 parents 501a558 + bd3d52d commit e52cf67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ jobs:
filename = fdata['filename']
patch = fdata.get('patch', '')
# Debug: Log the patch content to ensure it's being sent correctly
print(f"Reviewing file: {filename}")
print(f"Patch:\n{patch}")
# Call OpenAI for inline code analysis
issues_prompt = f"""
Review the following code patch for errors and issues such as:
Expand All @@ -73,7 +77,7 @@ jobs:
- The exact line number
- A clear explanation of the issue
- A suggested fix (if possible)
Patch to analyze:
Only analyze the code in this patch:
{patch}
"""
ai_headers = {"Content-Type": "application/json", "Authorization": f"Bearer {openai_key}"}
Expand Down

0 comments on commit e52cf67

Please sign in to comment.