Merge pull request #5 from cds-snc/feature/github-comment

Re-enable github comment on the ai code reviewer
This commit is contained in:
Jimmy Royer 2024-09-05 14:41:15 -04:00 committed by GitHub
commit 89a44f2d65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);
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

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