mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	This commit is contained in:
		@@ -556,7 +556,8 @@ func GetCommitMessages(pr *models.PullRequest) string {
 | 
				
			|||||||
	authorsMap := map[string]bool{}
 | 
						authorsMap := map[string]bool{}
 | 
				
			||||||
	authors := make([]string, 0, list.Len())
 | 
						authors := make([]string, 0, list.Len())
 | 
				
			||||||
	stringBuilder := strings.Builder{}
 | 
						stringBuilder := strings.Builder{}
 | 
				
			||||||
	element := list.Front()
 | 
						// commits list is in reverse chronological order
 | 
				
			||||||
 | 
						element := list.Back()
 | 
				
			||||||
	for element != nil {
 | 
						for element != nil {
 | 
				
			||||||
		commit := element.Value.(*git.Commit)
 | 
							commit := element.Value.(*git.Commit)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -581,7 +582,7 @@ func GetCommitMessages(pr *models.PullRequest) string {
 | 
				
			|||||||
			authors = append(authors, authorString)
 | 
								authors = append(authors, authorString)
 | 
				
			||||||
			authorsMap[authorString] = true
 | 
								authorsMap[authorString] = true
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		element = element.Next()
 | 
							element = element.Prev()
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Consider collecting the remaining authors
 | 
						// Consider collecting the remaining authors
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user