mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-21 18:16:47 +00:00
test commit
This commit is contained in:
parent
c4290da204
commit
461527e331
1 changed files with 13 additions and 1 deletions
12
src/main.ts
12
src/main.ts
|
@ -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