diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index c668cb7d90d..690869cd75c 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -360,6 +360,7 @@ func (prInfo *pullRequestViewInfo) prepareViewInfo(ctx *context.Context, issue * ctx.Data["BaseBranch"] = issue.PullRequest.BaseBranch ctx.Data["HeadBranch"] = issue.PullRequest.HeadBranch ctx.Data["HeadUserName"] = issue.PullRequest.MustHeadUserName(ctx) + ctx.Data["BaseName"] = issue.PullRequest.BaseRepo.OwnerName if issue.PullRequest.HasMerged { prInfo.prepareViewMergedPullInfo(ctx)