aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
author赵智超 <1012112796@qq.com>2020-10-14 20:11:11 +0800
committerGitHub <noreply@github.com>2020-10-14 13:11:11 +0100
commit97980146c52c1cb27e18f60fcd876519d53dad2f (patch)
treeb691cbcabd95e16f5b3d994164611df2b21d1f75 /routers
parente70df67d4792826b51f0d2186816bf7651d1653d (diff)
downloadgitea-97980146c52c1cb27e18f60fcd876519d53dad2f.tar.gz
gitea-97980146c52c1cb27e18f60fcd876519d53dad2f.zip
Show original author's reviews on pull summary box (#13127)
follow #12039, show original author's reviews by other way. fix #11705. Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 7977647097..8aef322090 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -450,6 +450,13 @@ type repoReviewerSelection struct {
func RetrieveRepoReviewers(ctx *context.Context, repo *models.Repository, issue *models.Issue, canChooseReviewer bool) {
ctx.Data["CanChooseReviewer"] = canChooseReviewer
+ originalAuthorReviews, err := models.GetReviewersFromOriginalAuthorsByIssueID(issue.ID)
+ if err != nil {
+ ctx.ServerError("GetReviewersFromOriginalAuthorsByIssueID", err)
+ return
+ }
+ ctx.Data["OriginalReviews"] = originalAuthorReviews
+
reviews, err := models.GetReviewersByIssueID(issue.ID)
if err != nil {
ctx.ServerError("GetReviewersByIssueID", err)