summaryrefslogtreecommitdiffstats
path: root/modules/notification/base/null.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-11-06 14:43:03 +0800
committerGitHub <noreply@github.com>2019-11-06 14:43:03 +0800
commit8a84d82d5341ff6572e7c77f5779e2583ed45c25 (patch)
tree8cd399ebff88f2e10a76a01c117834b25a0c699f /modules/notification/base/null.go
parent36b8c081f6b9b642bc068158b3a893d027d06ba8 (diff)
downloadgitea-8a84d82d5341ff6572e7c77f5779e2583ed45c25.tar.gz
gitea-8a84d82d5341ff6572e7c77f5779e2583ed45c25.zip
Move repofiles webhooks to notification (#8807)
Diffstat (limited to 'modules/notification/base/null.go')
-rw-r--r--modules/notification/base/null.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/notification/base/null.go b/modules/notification/base/null.go
index 5b6359cbd5..a9d9d6a164 100644
--- a/modules/notification/base/null.go
+++ b/modules/notification/base/null.go
@@ -114,3 +114,11 @@ func (*NullNotifier) NotifyMigrateRepository(doer *models.User, u *models.User,
// NotifyPushCommits notifies commits pushed to notifiers
func (*NullNotifier) NotifyPushCommits(pusher *models.User, repo *models.Repository, refName, oldCommitID, newCommitID string, commits *models.PushCommits) {
}
+
+// NotifyCreateRef notifies branch or tag creation to notifiers
+func (*NullNotifier) NotifyCreateRef(doer *models.User, repo *models.Repository, refType, refFullName string) {
+}
+
+// NotifyDeleteRef notifies branch or tag deleteion to notifiers
+func (*NullNotifier) NotifyDeleteRef(doer *models.User, repo *models.Repository, refType, refFullName string) {
+}