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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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
View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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);
} }
} }