mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	This commit is contained in:
		@@ -35,6 +35,11 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*models.CommitStatus, re
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		if targetStatus == "" {
 | 
							if targetStatus == "" {
 | 
				
			||||||
			targetStatus = structs.CommitStatusPending
 | 
								targetStatus = structs.CommitStatusPending
 | 
				
			||||||
 | 
								commitStatuses = append(commitStatuses, &models.CommitStatus{
 | 
				
			||||||
 | 
									State:       targetStatus,
 | 
				
			||||||
 | 
									Context:     ctx,
 | 
				
			||||||
 | 
									Description: "Pending",
 | 
				
			||||||
 | 
								})
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if targetStatus.NoBetterThan(returnedStatus) {
 | 
							if targetStatus.NoBetterThan(returnedStatus) {
 | 
				
			||||||
			returnedStatus = targetStatus
 | 
								returnedStatus = targetStatus
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user