Skip to content

Commit

Permalink
Update reviewFiles.js
Browse files Browse the repository at this point in the history
  • Loading branch information
trolit committed Jul 31, 2022
1 parent 31e316f commit 5611070
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/pull-request/reviewFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@ module.exports = (patchronContext, files) => {
const chunks = _splitPatchByHunkHeader(patch);

for (const chunk of chunks) {
comments.push(
...review(patchronContext, relatedRules, {
const fileChunkReviewComments = review(
patchronContext,
relatedRules,
{
...file,
splitPatch: chunk
})
}
);

if (fileChunkReviewComments?.length) {
comments.push(...fileChunkReviewComments);
}
}
}

Expand Down

0 comments on commit 5611070

Please sign in to comment.