|
|
@ -390,6 +390,8 @@ func PrepareMergedViewPullInfo(ctx *context.Context, issue *models.Issue) *git.C |
|
|
|
|
|
|
|
|
|
|
|
// PrepareViewPullInfo show meta information for a pull request preview page
|
|
|
|
// PrepareViewPullInfo show meta information for a pull request preview page
|
|
|
|
func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.CompareInfo { |
|
|
|
func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.CompareInfo { |
|
|
|
|
|
|
|
ctx.Data["PullRequestWorkInProgressPrefixes"] = setting.Repository.PullRequest.WorkInProgressPrefixes |
|
|
|
|
|
|
|
|
|
|
|
repo := ctx.Repo.Repository |
|
|
|
repo := ctx.Repo.Repository |
|
|
|
pull := issue.PullRequest |
|
|
|
pull := issue.PullRequest |
|
|
|
|
|
|
|
|
|
|
@ -579,8 +581,6 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.Compare |
|
|
|
ctx.Data["IsNothingToCompare"] = true |
|
|
|
ctx.Data["IsNothingToCompare"] = true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ctx.Data["PullRequestWorkInProgressPrefixes"] = setting.Repository.PullRequest.WorkInProgressPrefixes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if pull.IsWorkInProgress() { |
|
|
|
if pull.IsWorkInProgress() { |
|
|
|
ctx.Data["IsPullWorkInProgress"] = true |
|
|
|
ctx.Data["IsPullWorkInProgress"] = true |
|
|
|
ctx.Data["WorkInProgressPrefix"] = pull.GetWorkInProgressPrefix() |
|
|
|
ctx.Data["WorkInProgressPrefix"] = pull.GetWorkInProgressPrefix() |
|
|
|