diff options
author | Jimmy Praet <jimmy.praet@telenet.be> | 2021-02-18 03:45:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 03:45:49 +0100 |
commit | 4c82485424adb0fcf72cf9cde74596a7f0f54ada (patch) | |
tree | 97554f86469f5a6e7f6fd2f79f668a8ba7749e16 /routers/repo | |
parent | 7ab6c77b4120d96b3239f827da8b858f65c36863 (diff) | |
download | gitea-4c82485424adb0fcf72cf9cde74596a7f0f54ada.tar.gz gitea-4c82485424adb0fcf72cf9cde74596a7f0f54ada.zip |
#14699 Make branch names in PR description clickable (#14716)
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/pull.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |