Skip to content

Commit 8572e71

Browse files
authored
Fix issue will be detected as pull request when checking First-time contributor (#28237)
Fix #28224
1 parent 709a376 commit 8572e71

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)