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.