1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-28 03:28:13 +00:00

refactor: mv modules/notification/actions to services/actions

This commit is contained in:
Jason Song
2022-12-29 16:05:00 +08:00
parent c84094011e
commit ec020563ae
4 changed files with 7 additions and 6 deletions

View File

@@ -12,7 +12,6 @@ import (
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/notification/action"
"code.gitea.io/gitea/modules/notification/actions"
"code.gitea.io/gitea/modules/notification/base"
"code.gitea.io/gitea/modules/notification/indexer"
"code.gitea.io/gitea/modules/notification/mail"
@@ -41,9 +40,6 @@ func NewContext() {
RegisterNotifier(webhook.NewNotifier())
RegisterNotifier(action.NewNotifier())
RegisterNotifier(mirror.NewNotifier())
if setting.Actions.Enabled {
RegisterNotifier(actions.NewNotifier())
}
}
// NotifyNewWikiPage notifies creating new wiki pages to notifiers