From 49aa7076b593e721619541a908bc69b608847d49 Mon Sep 17 00:00:00 2001 From: Romain Pomier Date: Wed, 6 Dec 2023 16:41:15 +0100 Subject: [PATCH] Remove replace --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 5c0c437..897b40d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -85,7 +85,7 @@ function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string { rules === "" ? "" : `Your review will only ensure the following rules are followed: -${rules.replace(/\n/g, "\n- ")}`; +${rules}`; const prompt = `Your name is ${botName}. Your task is to review pull requests. ${rulesPrompt} Here are your instructions regarding the format and the style of the review: