mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update review.yml
This commit is contained in:
parent
501a558c0a
commit
bd3d52d2a1
6
.github/workflows/review.yml
vendored
6
.github/workflows/review.yml
vendored
@ -63,6 +63,10 @@ jobs:
|
|||||||
filename = fdata['filename']
|
filename = fdata['filename']
|
||||||
patch = fdata.get('patch', '')
|
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
|
# Call OpenAI for inline code analysis
|
||||||
issues_prompt = f"""
|
issues_prompt = f"""
|
||||||
Review the following code patch for errors and issues such as:
|
Review the following code patch for errors and issues such as:
|
||||||
@ -73,7 +77,7 @@ jobs:
|
|||||||
- The exact line number
|
- The exact line number
|
||||||
- A clear explanation of the issue
|
- A clear explanation of the issue
|
||||||
- A suggested fix (if possible)
|
- A suggested fix (if possible)
|
||||||
Patch to analyze:
|
Only analyze the code in this patch:
|
||||||
{patch}
|
{patch}
|
||||||
"""
|
"""
|
||||||
ai_headers = {"Content-Type": "application/json", "Authorization": f"Bearer {openai_key}"}
|
ai_headers = {"Content-Type": "application/json", "Authorization": f"Bearer {openai_key}"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user