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 and silverwind committed Feb 20, 2024
1 parent 55d1ad8 commit d875ac8
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 d875ac8

Please sign in to comment.