From dd29ecb3337fb24931a386fe0cfbcecbe351f34b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 14 Nov 2020 03:12:33 +0800 Subject: [PATCH] Add missed sync branch/tag webhook (#13538) Co-authored-by: Lauris BH Co-authored-by: techknowlogick --- modules/notification/webhook/webhook.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/notification/webhook/webhook.go b/modules/notification/webhook/webhook.go index 9ca73db05135..bc21fb6113d6 100644 --- a/modules/notification/webhook/webhook.go +++ b/modules/notification/webhook/webhook.go @@ -797,3 +797,11 @@ func (m *webhookNotifier) NotifySyncPushCommits(pusher *models.User, repo *model log.Error("PrepareWebhooks: %v", err) } } + +func (m *webhookNotifier) NotifySyncCreateRef(pusher *models.User, repo *models.Repository, refType, refFullName string) { + m.NotifyCreateRef(pusher, repo, refType, refFullName) +} + +func (m *webhookNotifier) NotifySyncDeleteRef(pusher *models.User, repo *models.Repository, refType, refFullName string) { + m.NotifyDeleteRef(pusher, repo, refType, refFullName) +}