Skip to content

Commit bbb73ff

Browse files
authored
Merge branch 'main' into issue-27847
2 parents b6d9849 + 8572e71 commit bbb73ff

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)