Skip to content

Commit 392f8d0

Browse files
yp05327GiteaBot
authored andcommitted
Fix issue will be detected as pull request when checking First-time contributor (go-gitea#28237)
Fix go-gitea#28224
1 parent 6d22ca1 commit 392f8d0

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)