summaryrefslogtreecommitdiffstats
path: root/modules/notification/base
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/base
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/base')
-rw-r--r--modules/notification/base/notifier.go2
-rw-r--r--modules/notification/base/null.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/notification/base/notifier.go b/modules/notification/base/notifier.go
index c74bb52014..b0e7b4cae8 100644
--- a/modules/notification/base/notifier.go
+++ b/modules/notification/base/notifier.go
@@ -20,7 +20,7 @@ type Notifier interface {
NotifyNewIssue(*models.Issue)
NotifyIssueChangeStatus(*models.User, *models.Issue, bool)
- NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue)
+ NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue, oldMilestoneID int64)
NotifyIssueChangeAssignee(doer *models.User, issue *models.Issue, assignee *models.User, removed bool, comment *models.Comment)
NotifyIssueChangeContent(doer *models.User, issue *models.Issue, oldContent string)
NotifyIssueClearLabels(doer *models.User, issue *models.Issue)
diff --git a/modules/notification/base/null.go b/modules/notification/base/null.go
index 9fb08884a1..3524a53c15 100644
--- a/modules/notification/base/null.go
+++ b/modules/notification/base/null.go
@@ -75,7 +75,7 @@ func (*NullNotifier) NotifyDeleteRelease(doer *models.User, rel *models.Release)
}
// NotifyIssueChangeMilestone places a place holder function
-func (*NullNotifier) NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue) {
+func (*NullNotifier) NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue, oldMilestoneID int64) {
}
// NotifyIssueChangeContent places a place holder function