mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-21 10:06:47 +00:00
test commit
This commit is contained in:
parent
c4290da204
commit
461527e331
1 changed files with 13 additions and 1 deletions
14
src/main.ts
14
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue