Skip to content

Commit

Permalink
chore(action): fixed issue with var
Browse files Browse the repository at this point in the history
  • Loading branch information
DarrellRichards committed Jun 1, 2024
1 parent ad28ce7 commit 90edab3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ async function validateCode(diff: File[], details: Details) {
return [];
}

if (!result.review) {
return [];
}

return {
body: result.review,
path: file.to,
Expand Down Expand Up @@ -85,9 +89,9 @@ async function main() {
description
});

// if (neededComments && neededComments.length > 0) {
// await createReviewComment(repository.owner.login, repository.name, number, neededComments);
// }
if (neededComments && neededComments.length > 0) {
await createReviewComment(repository.owner.login, repository.name, number, neededComments);
}

console.log('neededComments', neededComments);

Expand Down

0 comments on commit 90edab3

Please sign in to comment.