mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Show commit history for closed/merged PRs (#24238)
Close #24237 Before: <details>  </details> After:  Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		@@ -1621,8 +1621,10 @@ func ViewIssue(ctx *context.Context) {
 | 
				
			|||||||
			comment.Type == issues_model.CommentTypeStopTracking {
 | 
								comment.Type == issues_model.CommentTypeStopTracking {
 | 
				
			||||||
			// drop error since times could be pruned from DB..
 | 
								// drop error since times could be pruned from DB..
 | 
				
			||||||
			_ = comment.LoadTime()
 | 
								_ = 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.
 | 
								// if PR is closed, the comments whose type is CommentTypePullRequestPush(29) after latestCloseCommentID won't be rendered.
 | 
				
			||||||
			latestCloseCommentID = comment.ID
 | 
								latestCloseCommentID = comment.ID
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user