From ced08d18a40b71cf4a290d9795280c2ef79e168f Mon Sep 17 00:00:00 2001 From: Julien Tant Date: Wed, 1 Aug 2018 05:00:35 +0200 Subject: [PATCH] fix IsPullReuqestBroken->IsPullRequestBroken (#4578) Signed-off-by: Julien Tant --- routers/repo/pull.go | 6 +++--- templates/repo/issue/view_content/pull.tmpl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/routers/repo/pull.go b/routers/repo/pull.go index c8d65731ee6f4..1d7747450be0a 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -264,7 +264,7 @@ func PrepareMergedViewPullInfo(ctx *context.Context, issue *models.Issue) *git.P if err != nil { if strings.Contains(err.Error(), "fatal: Not a valid object name") { - ctx.Data["IsPullReuqestBroken"] = true + ctx.Data["IsPullRequestBroken"] = true ctx.Data["BaseTarget"] = "deleted" ctx.Data["NumCommits"] = 0 ctx.Data["NumFiles"] = 0 @@ -302,7 +302,7 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.PullReq } if pull.HeadRepo == nil || !headGitRepo.IsBranchExist(pull.HeadBranch) { - ctx.Data["IsPullReuqestBroken"] = true + ctx.Data["IsPullRequestBroken"] = true ctx.Data["HeadTarget"] = "deleted" ctx.Data["NumCommits"] = 0 ctx.Data["NumFiles"] = 0 @@ -313,7 +313,7 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.PullReq pull.BaseBranch, pull.HeadBranch) if err != nil { if strings.Contains(err.Error(), "fatal: Not a valid object name") { - ctx.Data["IsPullReuqestBroken"] = true + ctx.Data["IsPullRequestBroken"] = true ctx.Data["BaseTarget"] = "deleted" ctx.Data["NumCommits"] = 0 ctx.Data["NumFiles"] = 0 diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl index d4bf5a32775ef..9c9dd290a3934 100644 --- a/templates/repo/issue/view_content/pull.tmpl +++ b/templates/repo/issue/view_content/pull.tmpl @@ -2,7 +2,7 @@ @@ -22,7 +22,7 @@
{{$.i18n.Tr "repo.pulls.reopen_to_merge"}}
- {{else if .IsPullReuqestBroken}} + {{else if .IsPullRequestBroken}}
{{$.i18n.Tr "repo.pulls.data_broken"}}