summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorkolaente <konrad@kola-entertainments.de>2018-11-22 14:17:36 +0100
committerLauris BH <lauris@nix.lv>2018-11-22 15:17:36 +0200
commit0dcf31ae49707c10c1b14e112e0831e920cb6e16 (patch)
treefae417a40cfad5dc19d625e797628cc5c6ebbb8f /routers
parentcef0f12c51cee9edeb636fd2174f8d4eb00ea955 (diff)
downloadgitea-0dcf31ae49707c10c1b14e112e0831e920cb6e16.tar.gz
gitea-0dcf31ae49707c10c1b14e112e0831e920cb6e16.zip
Show review summary in pull requests (#5132)
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 3bcfdf1b04..08bdf311f9 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -802,6 +802,12 @@ func ViewIssue(ctx *context.Context) {
}
}
ctx.Data["IsPullBranchDeletable"] = canDelete && pull.HeadRepo != nil && git.IsBranchExist(pull.HeadRepo.RepoPath(), pull.HeadBranch)
+
+ ctx.Data["PullReviewersWithType"], err = models.GetReviewersByPullID(issue.ID)
+ if err != nil {
+ ctx.ServerError("GetReviewersByPullID", err)
+ return
+ }
}
// Get Dependencies