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

13
dist/index.js vendored
View file

@ -343,13 +343,12 @@ ${chunk.changes
});
const comments = yield analyzeCode(filteredDiff, prDetails);
if (comments.length > 0) {
// await createReviewComment(
// prDetails.owner,
// prDetails.repo,
// prDetails.pull_number,
// comments
// );
yield console.log("Comments:", comments);
yield createReviewComment(
prDetails.owner,
prDetails.repo,
prDetails.pull_number,
comments
);
}
});
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long