aboutsummaryrefslogtreecommitdiff
path: root/routers/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-09 00:03:29 -0500
committerUnknwon <u@gogs.io>2017-03-09 00:03:29 -0500
commitc93731339f3da01bb1158acc7acf781f0dfe2468 (patch)
tree7c1d161ab780949e5b84313c85788cc1aa2ac9d4 /routers/repo
parentbab448681d613e3982c46c7bd9ed54319638a3dd (diff)
webhook: support Issues event (#2319)
Also addresses #3485.
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/issue.go2
-rw-r--r--routers/repo/webhook.go1
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,
},
}