aboutsummaryrefslogtreecommitdiff
path: root/routes/repo/pull.go
diff options
context:
space:
mode:
Diffstat (limited to 'routes/repo/pull.go')
-rw-r--r--routes/repo/pull.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routes/repo/pull.go b/routes/repo/pull.go
index 48eb76e7..c6652c7f 100644
--- a/routes/repo/pull.go
+++ b/routes/repo/pull.go
@@ -389,7 +389,7 @@ func MergePullRequest(c *context.Context) {
return
}
if issue.IsClosed {
- c.Handle(404, "MergePullRequest", nil)
+ c.NotFound()
return
}
@@ -400,13 +400,13 @@ func MergePullRequest(c *context.Context) {
}
if !pr.CanAutoMerge() || pr.HasMerged {
- c.Handle(404, "MergePullRequest", nil)
+ c.NotFound()
return
}
pr.Issue = issue
pr.Issue.Repo = c.Repo.Repository
- if err = pr.Merge(c.User, c.Repo.GitRepo); err != nil {
+ if err = pr.Merge(c.User, c.Repo.GitRepo, models.MergeStyle(c.Query("merge_style"))); err != nil {
c.ServerError("Merge", err)
return
}