From 6bdc556b7f490be7360104b731ce817050cc1d80 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 21 May 2018 10:28:29 +0800 Subject: Fix some webhooks bugs (#3981) * fix some webhooks bugs * update vendor Signed-off-by: Bo-Yi Wu * fix test * fix clearlabels * fix pullrequest webhook bug fix #3492 * update release webhook description * remove unused code * fix push webhook in pull request * small changes --- routers/repo/release.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers/repo/release.go') diff --git a/routers/repo/release.go b/routers/repo/release.go index a54576b91b..bae87efdcd 100644 --- a/routers/repo/release.go +++ b/routers/repo/release.go @@ -197,7 +197,7 @@ func NewReleasePost(ctx *context.Context, form auth.NewReleaseForm) { rel.PublisherID = ctx.User.ID rel.IsTag = false - if err = models.UpdateRelease(ctx.Repo.GitRepo, rel, attachmentUUIDs); err != nil { + if err = models.UpdateRelease(ctx.User, ctx.Repo.GitRepo, rel, attachmentUUIDs); err != nil { ctx.Data["Err_TagName"] = true ctx.ServerError("UpdateRelease", err) return @@ -276,7 +276,7 @@ func EditReleasePost(ctx *context.Context, form auth.EditReleaseForm) { rel.Note = form.Content rel.IsDraft = len(form.Draft) > 0 rel.IsPrerelease = form.Prerelease - if err = models.UpdateRelease(ctx.Repo.GitRepo, rel, attachmentUUIDs); err != nil { + if err = models.UpdateRelease(ctx.User, ctx.Repo.GitRepo, rel, attachmentUUIDs); err != nil { ctx.ServerError("UpdateRelease", err) return } -- cgit v1.2.3