You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/review.ts
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -609,6 +609,7 @@ ${comment_chain}
609
609
core.warning('No pull request found, skipping.')
610
610
continue
611
611
}
612
+
612
613
// sanitize review's start_line and end_line
613
614
// with patches' start_line and end_line
614
615
// if needed adjust start_line and end_line
@@ -621,15 +622,20 @@ ${comment_chain}
621
622
if(review.start_line>=start_line){
622
623
closest_start_line=start_line
623
624
closest_end_line=end_line
624
-
if(review.end_line<=end_line){
625
+
if(
626
+
review.end_line<=end_line&&
627
+
review.end_line>=start_line
628
+
){
625
629
within_patch=true
626
630
break
627
631
}
628
632
}
629
633
}
634
+
630
635
if(!within_patch){
631
636
// map the review to the closest patch
632
637
review.comment=`> Note: This review was outside of the patch, so it was mapped it to the closest patch. Original lines [${review.start_line}-${review.end_line}]
0 commit comments