diff options
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r-- | routers/repo/pull.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go index b55d928b..caa651c6 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -381,7 +381,8 @@ func MergePullRequest(ctx *middleware.Context) { } pr.Pull = pull - if err = pr.Merge(ctx.Repo.GitRepo); err != nil { + pr.Pull.Repo = ctx.Repo.Repository + if err = pr.Merge(ctx.User, ctx.Repo.GitRepo); err != nil { ctx.Handle(500, "GetPullRequestByPullID", err) return } |