From c6390a649cf3a2ae8fbb86609276c19267c8554b Mon Sep 17 00:00:00 2001 From: Will Hohyon Ryu Date: Thu, 7 Mar 2024 19:30:47 -0800 Subject: [PATCH] chore(createPrompt): add default language value for user input --- src/createPrompt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/createPrompt.ts b/src/createPrompt.ts index 5d4abdc..ae345a0 100644 --- a/src/createPrompt.ts +++ b/src/createPrompt.ts @@ -9,7 +9,7 @@ export interface PRDetails { description: string; } -const language: string = core.getInput("language"); +const language: string = core.getInput("language") || 'English'; export function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string { return `Your task is to review pull requests. Instructions: