Skip to content

Commit 7a36be5

Browse files
yp05327fuxiaohei
authored andcommitted
Fix issue will be detected as pull request when checking First-time contributor (go-gitea#28237)
Fix go-gitea#28224
1 parent 0c3b500 commit 7a36be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ func roleDescriptor(ctx stdCtx.Context, repo *repo_model.Repository, poster *use
13191319
return roleDescriptor, err
13201320
} else if hasMergedPR {
13211321
roleDescriptor.RoleInRepo = issues_model.RoleRepoContributor
1322-
} else {
1322+
} else if issue.IsPull {
13231323
// only display first time contributor in the first opening pull request
13241324
roleDescriptor.RoleInRepo = issues_model.RoleRepoFirstTimeContributor
13251325
}

0 commit comments

Comments
 (0)