Skip to content

Commit bd3d52d

Browse files
authored
Update review.yml
1 parent 501a558 commit bd3d52d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/review.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ jobs:
6363
filename = fdata['filename']
6464
patch = fdata.get('patch', '')
6565
66+
# Debug: Log the patch content to ensure it's being sent correctly
67+
print(f"Reviewing file: {filename}")
68+
print(f"Patch:\n{patch}")
69+
6670
# Call OpenAI for inline code analysis
6771
issues_prompt = f"""
6872
Review the following code patch for errors and issues such as:
@@ -73,7 +77,7 @@ jobs:
7377
- The exact line number
7478
- A clear explanation of the issue
7579
- A suggested fix (if possible)
76-
Patch to analyze:
80+
Only analyze the code in this patch:
7781
{patch}
7882
"""
7983
ai_headers = {"Content-Type": "application/json", "Authorization": f"Bearer {openai_key}"}

0 commit comments

Comments
 (0)