We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 501a558 commit bd3d52dCopy full SHA for bd3d52d
1 file changed
.github/workflows/review.yml
@@ -63,6 +63,10 @@ jobs:
63
filename = fdata['filename']
64
patch = fdata.get('patch', '')
65
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
+
70
# Call OpenAI for inline code analysis
71
issues_prompt = f"""
72
Review the following code patch for errors and issues such as:
@@ -73,7 +77,7 @@ jobs:
73
77
- The exact line number
74
78
- A clear explanation of the issue
75
79
- A suggested fix (if possible)
76
- Patch to analyze:
80
+ Only analyze the code in this patch:
81
{patch}
82
"""
83
ai_headers = {"Content-Type": "application/json", "Authorization": f"Bearer {openai_key}"}
0 commit comments