Fix issue will be detected as pull request when checking `First-time contributor` (#28237)

Fix #28224
pull/28174/head^2
yp05327 12 months ago committed by GitHub
parent 709a376c51
commit 8572e71a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/web/repo/issue.go

@ -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
}

Loading…
Cancel
Save