mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-04-23 00:06:43 +02:00
Backport #28237 by @yp05327 Fix #28224 Co-authored-by: yp05327 <576951401@qq.com> (cherry picked from commit 76e892317b22cad38ce73d41483467699a16a76d)
This commit is contained in:
parent
93c3924a56
commit
694f748f38
1 changed files with 1 additions and 1 deletions
|
@ -1309,7 +1309,7 @@ func roleDescriptor(ctx stdCtx.Context, repo *repo_model.Repository, poster *use
|
|||
return roleDescriptor, err
|
||||
} else if hasMergedPR {
|
||||
roleDescriptor.RoleInRepo = issues_model.RoleRepoContributor
|
||||
} else {
|
||||
} else if issue.IsPull {
|
||||
// only display first time contributor in the first opening pull request
|
||||
roleDescriptor.RoleInRepo = issues_model.RoleRepoFirstTimeContributor
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue