Re-enable github comments instead of logging

This commit is contained in:
Jimmy Royer 2024-09-05 14:19:42 -04:00
parent 27354ca764
commit 7a83d05aaf
7 changed files with 13 additions and 29505 deletions

View file

@ -257,13 +257,12 @@ async function main() {
const comments = await analyzeCode(filteredDiff, prDetails);
if (comments.length > 0) {
// await createReviewComment(
// prDetails.owner,
// prDetails.repo,
// prDetails.pull_number,
// comments
// );
await console.log("Comments:", comments);
await createReviewComment(
prDetails.owner,
prDetails.repo,
prDetails.pull_number,
comments
);
}
}