summaryrefslogtreecommitdiffstats
path: root/modules/notification/base/null.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-11-24 13:16:59 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-11-24 00:16:59 -0500
commit8ab35eefc4ff5db3f2f0a62f6f0272eae9be0585 (patch)
tree5249bcee68fb96652adc8f7dd46b604cbf15cd5e /modules/notification/base/null.go
parente3f22ad2cca094cba057683f35f8536e3f71a582 (diff)
downloadgitea-8ab35eefc4ff5db3f2f0a62f6f0272eae9be0585.tar.gz
gitea-8ab35eefc4ff5db3f2f0a62f6f0272eae9be0585.zip
Move mirror sync actions to notification (#9022)
* Move mirror sync actions to notification * fix lint
Diffstat (limited to 'modules/notification/base/null.go')
-rw-r--r--modules/notification/base/null.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/notification/base/null.go b/modules/notification/base/null.go
index b9ecaed425..79e9f7f7fc 100644
--- a/modules/notification/base/null.go
+++ b/modules/notification/base/null.go
@@ -130,3 +130,15 @@ func (*NullNotifier) NotifyRenameRepository(doer *models.User, repo *models.Repo
// NotifyTransferRepository places a place holder function
func (*NullNotifier) NotifyTransferRepository(doer *models.User, repo *models.Repository, oldOwnerName string) {
}
+
+// NotifySyncPushCommits places a place holder function
+func (*NullNotifier) NotifySyncPushCommits(pusher *models.User, repo *models.Repository, refName, oldCommitID, newCommitID string, commits *models.PushCommits) {
+}
+
+// NotifySyncCreateRef places a place holder function
+func (*NullNotifier) NotifySyncCreateRef(doer *models.User, repo *models.Repository, refType, refFullName string) {
+}
+
+// NotifySyncDeleteRef places a place holder function
+func (*NullNotifier) NotifySyncDeleteRef(doer *models.User, repo *models.Repository, refType, refFullName string) {
+}