Skip to content

Commit 726c13c

Browse files
wxiaoguangGiteaBot
andcommitted
1 parent 7117355 commit 726c13c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

routers/web/repo/issue.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -1627,8 +1627,10 @@ func ViewIssue(ctx *context.Context) {
16271627
comment.Type == issues_model.CommentTypeStopTracking {
16281628
// drop error since times could be pruned from DB..
16291629
_ = comment.LoadTime()
1630-
} else if comment.Type == issues_model.CommentTypeClose {
1631-
// record ID of latest closed comment.
1630+
}
1631+
1632+
if comment.Type == issues_model.CommentTypeClose || comment.Type == issues_model.CommentTypeMergePull {
1633+
// record ID of the latest closed/merged comment.
16321634
// if PR is closed, the comments whose type is CommentTypePullRequestPush(29) after latestCloseCommentID won't be rendered.
16331635
latestCloseCommentID = comment.ID
16341636
}

0 commit comments

Comments
 (0)