diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-15 13:03:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-15 13:03:05 +0800 |
commit | 20477a69ea123a7800ebf94bfd2225eb9ae90e8f (patch) | |
tree | 0e01914d69bd5dbda358c7c5ce90c375e0f29be0 /modules/notification/notification.go | |
parent | 34fb9d68a5567423ddde736ff42f9780f4048366 (diff) | |
download | gitea-20477a69ea123a7800ebf94bfd2225eb9ae90e8f.tar.gz gitea-20477a69ea123a7800ebf94bfd2225eb9ae90e8f.zip |
Move clearlabels from models to issue service (#8326)
* move clearlabels from models to issue service
* improve code
* Apply suggestions from code review
Co-Authored-By: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/notification/notification.go')
-rw-r--r-- | modules/notification/notification.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/notification/notification.go b/modules/notification/notification.go index e0de88346d..06220ecb04 100644 --- a/modules/notification/notification.go +++ b/modules/notification/notification.go @@ -11,6 +11,7 @@ import ( "code.gitea.io/gitea/modules/notification/indexer" "code.gitea.io/gitea/modules/notification/mail" "code.gitea.io/gitea/modules/notification/ui" + "code.gitea.io/gitea/modules/notification/webhook" ) var ( @@ -27,6 +28,7 @@ func init() { RegisterNotifier(ui.NewNotifier()) RegisterNotifier(mail.NewNotifier()) RegisterNotifier(indexer.NewNotifier()) + RegisterNotifier(webhook.NewNotifier()) } // NotifyCreateIssueComment notifies issue comment related message to notifiers |