From a9711a084c05e8cf4f837f1f7c775f3105db3243 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Thu, 9 May 2024 10:13:37 +0200 Subject: [PATCH] utils.js: improve the prompt, and simplify the replacements --- src/utils.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/utils.js b/src/utils.js index 53782ab..f629d52 100644 --- a/src/utils.js +++ b/src/utils.js @@ -5,14 +5,14 @@ Desired format: ### Description // How does this PR change the codebase? What is the motivation for this change? -### Changes - // Describe the main changes in the PR, organizing them by filename +### Possible Issues + // Describe any other possible major non-security issues within this code. If there are none, omit this section. ### Security Hotspots // Describe locations for possible vulnerabilities in the change, ordered by risk. Do not include a vulnerability unless it is likely to present a real security risk. If there are none, omit this section. -### Other Issues - // Describe any other major issues with this code such as license incompatibilities introduced by a dependency. If there are none, omit this section. +### Changes + // Describe the main changes in the PR, organizing them by filename \n` export async function explainPatchHelper (patchBody, owner, repo, models, debug, getResponse) { @@ -44,7 +44,6 @@ export async function explainPatchHelper (patchBody, owner, repo, models, debug, } response = response.replaceAll('### Changes', '
\nChanges\n\n### Changes') - response = response.replaceAll('### Security Hotspots', '
\n\n### Security Hotspots') - response += `\n\n` + response += `\n\n` return response }