aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-11-27 19:46:55 +0900
committerGitHub <noreply@github.com>2023-11-27 10:46:55 +0000
commit8572e71a7f0d6e49226a2fade69c02d03580fb92 (patch)
tree326baa6acc03ad2524df92634ced4493ecb6fcdf /routers/web/repo
parent709a376c518d0cfde10bb911b32fd0ea82c67b52 (diff)
downloadgitea-8572e71a7f0d6e49226a2fade69c02d03580fb92.tar.gz
gitea-8572e71a7f0d6e49226a2fade69c02d03580fb92.zip
Fix issue will be detected as pull request when checking `First-time contributor` (#28237)
Fix #28224
Diffstat (limited to 'routers/web/repo')
-rw-r--r--routers/web/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go
index 3ea40fe8c9..ba8b49774b 100644
--- a/routers/web/repo/issue.go
+++ b/routers/web/repo/issue.go
@@ -1319,7 +1319,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
}