Skip to content

Commit 925a25d

Browse files
authored
Update review.yml
1 parent 471b78e commit 925a25d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/review.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
inline_comments = [] # Collect inline comments to post
6060
diff_text = ""
6161
62+
# Loop through the files in the PR
6263
for fdata in pr_files:
6364
filename = fdata['filename']
6465
patch = fdata.get('patch', '')
@@ -112,7 +113,7 @@ jobs:
112113
print("No critical issues found in the code.")
113114
114115
# Always post PR summary
115-
summary_prompt = f"Summarize the following pull request changes in a concise, technical manner:\\n\\n{diff_text}"
116+
summary_prompt = f"Summarize the following pull request changes in a concise, technical manner. Include details on which files were changed and a high-level overview of the changes:\n\n{diff_text}"
116117
data_summary = {
117118
"model": "gpt-4o-mini",
118119
"messages": [{"role": "user", "content": summary_prompt}],

0 commit comments

Comments
 (0)