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

Commit d3b8a17

Browse files
authored
fix: compare with base vs. last commit (#223)
1 parent 3891f38 commit d3b8a17

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/review.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ export const codeReview = async (
121121
core.warning(`Skipped: files data is missing`)
122122
return
123123
}
124-
// Filter out any file that is not changed compared to the target branch
125-
const files = incrementalFiles.filter(incrementalChange =>
126-
targetBranchFiles.some(
127-
changeRelativeToTargetBranch =>
128-
changeRelativeToTargetBranch.filename === incrementalChange.filename
124+
125+
// Filter out any file that is changed compared to the incremental changes
126+
const files = targetBranchFiles.filter(targetBranchFile =>
127+
incrementalFiles.some(
128+
incrementalFile => incrementalFile.filename === targetBranchFile.filename
129129
)
130130
)
131131

0 commit comments

Comments
 (0)