diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-02 11:33:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-02 11:33:20 +0800 |
commit | 8f26397928b33a16558dafc2716a72b6e6900bf4 (patch) | |
tree | 64604da13ff190b9aa6d3f4dc94fe7c8352a99e9 /modules/notification/base | |
parent | f518fe66620bcb60a5251befca116f8caa48ee42 (diff) | |
download | gitea-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.go | 2 | ||||
-rw-r--r-- | modules/notification/base/null.go | 2 |
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 |