Remove replace

This commit is contained in:
Romain Pomier 2023-12-06 16:41:15 +01:00
parent 51b69a7b81
commit 49aa7076b5
No known key found for this signature in database
GPG key ID: 8BB93B7AA0C163E6

View file

@ -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: