Преглед на файлове

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 <576951401@qq.com>
tags/v1.21.2
Giteabot преди 6 месеца
родител
ревизия
76e892317b
No account linked to committer's email address
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      routers/web/repo/issue.go

+ 1
- 1
routers/web/repo/issue.go Целия файл

@@ -1306,7 +1306,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…
Отказ
Запис