Skip to content

Commit f0a577a

Browse files
committed
fix
1 parent 8ea33ba commit f0a577a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

routers/web/repo/issue.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,8 +1621,10 @@ func ViewIssue(ctx *context.Context) {
16211621
comment.Type == issues_model.CommentTypeStopTracking {
16221622
// drop error since times could be pruned from DB..
16231623
_ = comment.LoadTime()
1624-
} else if comment.Type == issues_model.CommentTypeClose {
1625-
// record ID of latest closed comment.
1624+
}
1625+
1626+
if comment.Type == issues_model.CommentTypeClose || comment.Type == issues_model.CommentTypeMergePull {
1627+
// record ID of the latest closed/merged comment.
16261628
// if PR is closed, the comments whose type is CommentTypePullRequestPush(29) after latestCloseCommentID won't be rendered.
16271629
latestCloseCommentID = comment.ID
16281630
}

0 commit comments

Comments
 (0)