From 925a25d3748737bc10d1d71e3b430d0deb6e9780 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Tue, 10 Dec 2024 14:34:36 +0100 Subject: [PATCH] Update review.yml --- .github/workflows/review.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index fbcefc3..a740daf 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -59,6 +59,7 @@ jobs: inline_comments = [] # Collect inline comments to post diff_text = "" + # Loop through the files in the PR for fdata in pr_files: filename = fdata['filename'] patch = fdata.get('patch', '') @@ -112,7 +113,7 @@ jobs: print("No critical issues found in the code.") # Always post PR summary - summary_prompt = f"Summarize the following pull request changes in a concise, technical manner:\\n\\n{diff_text}" + 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}" data_summary = { "model": "gpt-4o-mini", "messages": [{"role": "user", "content": summary_prompt}],