Skip to content

Commit 76e8923

Browse files
GiteaBotyp05327
andauthored
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 <[email protected]>
1 parent 5001f63 commit 76e8923

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
@@ -1306,7 +1306,7 @@ func roleDescriptor(ctx stdCtx.Context, repo *repo_model.Repository, poster *use
13061306
return roleDescriptor, err
13071307
} else if hasMergedPR {
13081308
roleDescriptor.RoleInRepo = issues_model.RoleRepoContributor
1309-
} else {
1309+
} else if issue.IsPull {
13101310
// only display first time contributor in the first opening pull request
13111311
roleDescriptor.RoleInRepo = issues_model.RoleRepoFirstTimeContributor
13121312
}

0 commit comments

Comments
 (0)