diff options
author | Giteabot <teabot@gitea.io> | 2023-11-29 10:49:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 02:49:33 +0000 |
commit | 76e892317b22cad38ce73d41483467699a16a76d (patch) | |
tree | 0bb7eaf5be75ffd6229baa4fb0593b28e1447d10 /routers/web/repo | |
parent | 5001f63c076ad1d82397fa33483dd9eb181303ef (diff) | |
download | gitea-76e892317b22cad38ce73d41483467699a16a76d.tar.gz gitea-76e892317b22cad38ce73d41483467699a16a76d.zip |
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>
Diffstat (limited to 'routers/web/repo')
-rw-r--r-- | routers/web/repo/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 76bb67ceaa..76152c9121 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -1306,7 +1306,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 } |