chore(createPrompt): add default language value for user input

This commit is contained in:
Will Hohyon Ryu 2024-03-07 19:30:47 -08:00
parent 5d1160716d
commit c6390a649c

View file

@ -9,7 +9,7 @@ export interface PRDetails {
description: string; 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 { export function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string {
return `Your task is to review pull requests. Instructions: return `Your task is to review pull requests. Instructions: