diff options
author | Unknwon <u@gogs.io> | 2017-03-09 00:03:29 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-09 00:03:29 -0500 |
commit | c93731339f3da01bb1158acc7acf781f0dfe2468 (patch) | |
tree | 7c1d161ab780949e5b84313c85788cc1aa2ac9d4 /routers/repo | |
parent | bab448681d613e3982c46c7bd9ed54319638a3dd (diff) |
webhook: support Issues event (#2319)
Also addresses #3485.
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/issue.go | 2 | ||||
-rw-r--r-- | routers/repo/webhook.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 09f369de..a3cc9660 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -771,7 +771,7 @@ func UpdateIssueMilestone(ctx *context.Context) { // Not check for invalid milestone id and give responsibility to owners. issue.MilestoneID = milestoneID - if err := models.ChangeMilestoneAssign(issue, oldMilestoneID); err != nil { + if err := models.ChangeMilestoneAssign(ctx.User, issue, oldMilestoneID); err != nil { ctx.Handle(500, "ChangeMilestoneAssign", err) return } diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index 7b055384..e1e03f03 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -113,6 +113,7 @@ func ParseHookEvent(f form.Webhook) *models.HookEvent { Delete: f.Delete, Fork: f.Fork, Push: f.Push, + Issues: f.Issues, PullRequest: f.PullRequest, }, } |