Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
fix: compare with base vs. last commit (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
harjotgill authored Apr 21, 2023
1 parent 3891f38 commit d3b8a17
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ export const codeReview = async (
core.warning(`Skipped: files data is missing`)
return
}
// Filter out any file that is not changed compared to the target branch
const files = incrementalFiles.filter(incrementalChange =>
targetBranchFiles.some(
changeRelativeToTargetBranch =>
changeRelativeToTargetBranch.filename === incrementalChange.filename

// Filter out any file that is changed compared to the incremental changes
const files = targetBranchFiles.filter(targetBranchFile =>
incrementalFiles.some(
incrementalFile => incrementalFile.filename === targetBranchFile.filename
)
)

Expand Down

0 comments on commit d3b8a17

Please sign in to comment.