Skip to content

Commit

Permalink
Show commit history for closed/merged PRs (go-gitea#24238)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang and GiteaBot committed Apr 21, 2023
1 parent 7117355 commit 726c13c
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 @@ -1627,8 +1627,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 726c13c

Please sign in to comment.