From 4c82485424adb0fcf72cf9cde74596a7f0f54ada Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Thu, 18 Feb 2021 03:45:49 +0100 Subject: #14699 Make branch names in PR description clickable (#14716) --- routers/repo/pull.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routers/repo') diff --git a/routers/repo/pull.go b/routers/repo/pull.go index d3dd9e4fb5..15af2a2a3f 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -301,6 +301,8 @@ func setMergeTarget(ctx *context.Context, pull *models.PullRequest) { ctx.Data["HeadTarget"] = pull.MustHeadUserName() + "/" + pull.HeadRepo.Name + ":" + pull.HeadBranch } ctx.Data["BaseTarget"] = pull.BaseBranch + ctx.Data["HeadBranchHTMLURL"] = pull.GetHeadBranchHTMLURL() + ctx.Data["BaseBranchHTMLURL"] = pull.GetBaseBranchHTMLURL() } // PrepareMergedViewPullInfo show meta information for a merged pull request view page -- cgit v1.2.3