mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-21 10:06:47 +00:00
Re-enable github comments instead of logging
This commit is contained in:
parent
27354ca764
commit
7a83d05aaf
7 changed files with 13 additions and 29505 deletions
28212
act/fixtures/actions/dist/index.js
vendored
28212
act/fixtures/actions/dist/index.js
vendored
File diff suppressed because one or more lines are too long
1
act/fixtures/actions/dist/index.js.map
vendored
1
act/fixtures/actions/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
1276
act/fixtures/actions/dist/licenses.txt
vendored
1276
act/fixtures/actions/dist/licenses.txt
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
13
dist/index.js
vendored
13
dist/index.js
vendored
|
@ -343,13 +343,12 @@ ${chunk.changes
|
||||||
});
|
});
|
||||||
const comments = yield analyzeCode(filteredDiff, prDetails);
|
const comments = yield analyzeCode(filteredDiff, prDetails);
|
||||||
if (comments.length > 0) {
|
if (comments.length > 0) {
|
||||||
// await createReviewComment(
|
yield createReviewComment(
|
||||||
// prDetails.owner,
|
prDetails.owner,
|
||||||
// prDetails.repo,
|
prDetails.repo,
|
||||||
// prDetails.pull_number,
|
prDetails.pull_number,
|
||||||
// comments
|
comments
|
||||||
// );
|
);
|
||||||
yield console.log("Comments:", comments);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
13
src/main.ts
13
src/main.ts
|
@ -257,13 +257,12 @@ async function main() {
|
||||||
|
|
||||||
const comments = await analyzeCode(filteredDiff, prDetails);
|
const comments = await analyzeCode(filteredDiff, prDetails);
|
||||||
if (comments.length > 0) {
|
if (comments.length > 0) {
|
||||||
// await createReviewComment(
|
await createReviewComment(
|
||||||
// prDetails.owner,
|
prDetails.owner,
|
||||||
// prDetails.repo,
|
prDetails.repo,
|
||||||
// prDetails.pull_number,
|
prDetails.pull_number,
|
||||||
// comments
|
comments
|
||||||
// );
|
);
|
||||||
await console.log("Comments:", comments);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue