Move issue milestone assign to issue service and move webhook to notification (#8780)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2019-11-02 11:33:20 +08:00
1 parent f518fe6662
commit 8f26397928
9 files changed
+70 -68

No files matched your search

+2 -2
View File
@@ -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)
}
}