Skip to content

Commit

Permalink
Fix issue will be detected as pull request when checking `First-time …
Browse files Browse the repository at this point in the history
…contributor` (go-gitea#28237)

Fix go-gitea#28224
  • Loading branch information
yp05327 authored Nov 27, 2023
1 parent 709a376 commit 8572e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@ func roleDescriptor(ctx stdCtx.Context, repo *repo_model.Repository, poster *use
return roleDescriptor, err
} else if hasMergedPR {
roleDescriptor.RoleInRepo = issues_model.RoleRepoContributor
} else {
} else if issue.IsPull {
// only display first time contributor in the first opening pull request
roleDescriptor.RoleInRepo = issues_model.RoleRepoFirstTimeContributor
}
Expand Down

0 comments on commit 8572e71

Please sign in to comment.