From: Lunny Xiao Date: Sat, 14 Nov 2020 03:04:58 +0000 (+0800) Subject: Add missed sync branch/tag webhook (#13538) (#13556) X-Git-Tag: v1.13.0~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=159a4db30a56fd58a17ae9c9f6879303ee63f1a5;p=gitea.git Add missed sync branch/tag webhook (#13538) (#13556) Co-authored-by: Lauris BH Co-authored-by: techknowlogick Co-authored-by: Lauris BH Co-authored-by: techknowlogick --- diff --git a/modules/notification/webhook/webhook.go b/modules/notification/webhook/webhook.go index c8b6bae724..d451b77cf4 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) +}