mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix issue will be detected as pull request when checking First-time contributor (#28237)
				
					
				
			Fix #28224
This commit is contained in:
		@@ -1319,7 +1319,7 @@ func roleDescriptor(ctx stdCtx.Context, repo *repo_model.Repository, poster *use
 | 
				
			|||||||
		return roleDescriptor, err
 | 
							return roleDescriptor, err
 | 
				
			||||||
	} else if hasMergedPR {
 | 
						} else if hasMergedPR {
 | 
				
			||||||
		roleDescriptor.RoleInRepo = issues_model.RoleRepoContributor
 | 
							roleDescriptor.RoleInRepo = issues_model.RoleRepoContributor
 | 
				
			||||||
	} else {
 | 
						} else if issue.IsPull {
 | 
				
			||||||
		// only display first time contributor in the first opening pull request
 | 
							// only display first time contributor in the first opening pull request
 | 
				
			||||||
		roleDescriptor.RoleInRepo = issues_model.RoleRepoFirstTimeContributor
 | 
							roleDescriptor.RoleInRepo = issues_model.RoleRepoFirstTimeContributor
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user