mirror of
1
Fork 0

Fix issue will be detected as pull request when checking `First-time contributor` (#28237) (#28271)

Backport #28237 by @yp05327

Fix #28224

Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
Giteabot 2023-11-29 10:49:33 +08:00 committed by GitHub
parent 5001f63c07
commit 76e892317b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1306,7 +1306,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
} }