feat(createPrompt): add console log for language variable

This commit is contained in:
Will Hohyon Ryu 2024-03-07 19:47:10 -08:00
parent 26f5881f43
commit a242c742a4

View file

@ -12,6 +12,8 @@ export interface PRDetails {
const language: string = core.getInput("language") || 'English'; 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 {
console.log('language', language);
return `Your task is to review pull requests. Instructions: return `Your task is to review pull requests. Instructions:
- Provide the response in following JSON format: {"reviews": [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]} - Provide the response in following JSON format: {"reviews": [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]}
- Do not give positive comments or compliments. - Do not give positive comments or compliments.