diff options
author | 赵智超 <1012112796@qq.com> | 2020-10-14 20:11:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 13:11:11 +0100 |
commit | 97980146c52c1cb27e18f60fcd876519d53dad2f (patch) | |
tree | b691cbcabd95e16f5b3d994164611df2b21d1f75 /routers | |
parent | e70df67d4792826b51f0d2186816bf7651d1653d (diff) | |
download | gitea-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.go | 7 |
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) |