Skip to content

Commit

Permalink
Show commit history for closed/merged PRs (#24238)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang and GiteaBot authored Apr 21, 2023
1 parent cb19772 commit 13d1d27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions routers/web/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -1621,8 +1621,10 @@ func ViewIssue(ctx *context.Context) {
comment.Type == issues_model.CommentTypeStopTracking {
// drop error since times could be pruned from DB..
_ = comment.LoadTime()
} else if comment.Type == issues_model.CommentTypeClose {
// record ID of latest closed comment.
}

if comment.Type == issues_model.CommentTypeClose || comment.Type == issues_model.CommentTypeMergePull {
// record ID of the latest closed/merged comment.
// if PR is closed, the comments whose type is CommentTypePullRequestPush(29) after latestCloseCommentID won't be rendered.
latestCloseCommentID = comment.ID
}
Expand Down

0 comments on commit 13d1d27

Please sign in to comment.