From 9defc56369b19a4c8f3dd6a989d7c204a26dae4f Mon Sep 17 00:00:00 2001 From: Will Hohyon Ryu Date: Thu, 7 Mar 2024 19:51:23 -0800 Subject: [PATCH] chore: Update node version in action.yml and language instructions in createPrompt.ts --- action.yml | 2 +- src/createPrompt.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index b4619d9..4a5db05 100644 --- a/action.yml +++ b/action.yml @@ -20,7 +20,7 @@ inputs: required: false default: "" runs: - using: "node16" + using: "node20" main: "dist/index.js" branding: icon: "aperture" diff --git a/src/createPrompt.ts b/src/createPrompt.ts index fa2d914..0971668 100644 --- a/src/createPrompt.ts +++ b/src/createPrompt.ts @@ -12,12 +12,10 @@ export interface PRDetails { const language: string = core.getInput("language") || 'English'; export function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string { - console.log('language', language); - return `Your task is to review pull requests. Instructions: - Provide the response in following JSON format: {"reviews": [{"lineNumber": , "reviewComment": ""}]} - Do not give positive comments or compliments. -- Provide review in ${language} language. +- Provide comments in ${language} language. - Provide comments and suggestions ONLY if there is something to improve, otherwise "reviews" should be an empty array. - Write the comment in GitHub Markdown format. - Use the given description only for the overall context and only comment the code.