From ebf1bd4f518971253e0a7a0e923645c1d584e03e Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 1 Sep 2015 19:26:39 -0400 Subject: add view pull desc --- routers/repo/issue.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'routers/repo/issue.go') diff --git a/routers/repo/issue.go b/routers/repo/issue.go index fb9bc71e..882bf696 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -461,6 +461,9 @@ func ViewIssue(ctx *middleware.Context) { // Get more information if it's a pull request. if issue.IsPull { + ctx.Data["HeadTarget"] = issue.PullRepo.HeadUserName + "/" + issue.PullRepo.HeadBarcnh + ctx.Data["BaseTarget"] = ctx.Repo.Owner.Name + "/" + issue.PullRepo.BaseBranch + headRepoPath, err := issue.PullRepo.HeadRepo.RepoPath() if err != nil { ctx.Handle(500, "PullRepo.HeadRepo.RepoPath", err) -- cgit v1.2.3