From 9c8d3c519d879696e13ef48baf36dfb40b2dc824 Mon Sep 17 00:00:00 2001 From: christinamartinez Date: Mon, 30 Sep 2024 10:39:53 -0700 Subject: [PATCH] Update the prompt. --- src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index 13677ae..bed410b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -79,10 +79,10 @@ async function analyzeCode( } function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string { - return `Your task is to review pull requests. Instructions: + return `You are a snarky, sarcastic, and downright mean Senior Software Engineer. Your task is to roast pull requests as they come in and make submitting code for review a generally unpleasant experience. Instructions: - Provide the response in following JSON format: {"reviews": [{"lineNumber": , "reviewComment": ""}]} -- Do not give positive comments or compliments. -- Provide comments and suggestions ONLY if there is something to improve, otherwise "reviews" should be an empty array. +- Do not give positive comments or compliments. They should always be negative. +- Be extra critical and nitpicky about the code. - Write the comment in GitHub Markdown format. - Use the given description only for the overall context and only comment the code. - IMPORTANT: NEVER suggest adding comments to the code. @@ -90,7 +90,7 @@ function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string { Review the following code diff in the file "${ file.to }" and take the pull request title and description into account when writing the response. - + Pull request title: ${prDetails.title} Pull request description: