summaryrefslogtreecommitdiffstats
path: root/modules/notification/notification.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-11-02 11:33:20 +0800
committerGitHub <noreply@github.com>2019-11-02 11:33:20 +0800
commit8f26397928b33a16558dafc2716a72b6e6900bf4 (patch)
tree64604da13ff190b9aa6d3f4dc94fe7c8352a99e9 /modules/notification/notification.go
parentf518fe66620bcb60a5251befca116f8caa48ee42 (diff)
downloadgitea-8f26397928b33a16558dafc2716a72b6e6900bf4.tar.gz
gitea-8f26397928b33a16558dafc2716a72b6e6900bf4.zip
Move issue milestone assign to issue service and move webhook to notification (#8780)
Diffstat (limited to 'modules/notification/notification.go')
-rw-r--r--modules/notification/notification.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/notification/notification.go b/modules/notification/notification.go
index 0f1b63cf67..70b1541e35 100644
--- a/modules/notification/notification.go
+++ b/modules/notification/notification.go
@@ -128,9 +128,9 @@ func NotifyDeleteRelease(doer *models.User, rel *models.Release) {
}
// NotifyIssueChangeMilestone notifies change milestone to notifiers
-func NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue) {
+func NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue, oldMilestoneID int64) {
for _, notifier := range notifiers {
- notifier.NotifyIssueChangeMilestone(doer, issue)
+ notifier.NotifyIssueChangeMilestone(doer, issue, oldMilestoneID)
}
}