Move actions to notification (#8785)

This commit is contained in:
2019-11-04 04:59:09 +08:00
committed by zeripath
parent 7971b05d2b
commit 491887d441
5 changed files with 118 additions and 37 deletions

View File

@ -7,6 +7,7 @@ package notification
import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/notification/action"
"code.gitea.io/gitea/modules/notification/base"
"code.gitea.io/gitea/modules/notification/indexer"
"code.gitea.io/gitea/modules/notification/mail"
@ -33,6 +34,7 @@ func NewContext() {
}
RegisterNotifier(indexer.NewNotifier())
RegisterNotifier(webhook.NewNotifier())
RegisterNotifier(action.NewNotifier())
}
// NotifyCreateIssueComment notifies issue comment related message to notifiers