diff options
author | Unknwon <u@gogs.io> | 2015-09-01 19:26:39 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-01 19:26:39 -0400 |
commit | ebf1bd4f518971253e0a7a0e923645c1d584e03e (patch) | |
tree | 4ada3c53f5cef5928405370e4c528789112b7549 /routers/repo/issue.go | |
parent | 8c046073a891e3a192794869628763ef072002eb (diff) |
add view pull desc
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r-- | routers/repo/issue.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) |