diff --git a/src/main.ts b/src/main.ts index 474d698..c040efb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -108,7 +108,7 @@ function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string { Review the following code diff in the file "${ file.to }" and take the pull request title and description into account when writing the response. - + Pull request title: ${prDetails.title} Pull request description: @@ -196,6 +196,7 @@ async function createReviewComment( } async function main() { + my_bad_name_function(); const prDetails = await getPRDetails(); let diff: string | null; const eventData = JSON.parse( @@ -257,6 +258,17 @@ async function main() { } } +const my_bad_name_function = () => { + let constantVal = 4; + if (2+2==5){ + console.log(`${constantVal} should not be changed`); + } + constantVal=5; + console.info("this has a typO"); + console.warn(constantVal); + return true; +} + main().catch((error) => { console.error("Error:", error); process.exit(1);