]> source.dussan.org Git - gitea.git/commitdiff
Add missed sync branch/tag webhook (#13538) (#13556)
authorLunny Xiao <xiaolunwen@gmail.com>
Sat, 14 Nov 2020 03:04:58 +0000 (11:04 +0800)
committerGitHub <noreply@github.com>
Sat, 14 Nov 2020 03:04:58 +0000 (22:04 -0500)
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
modules/notification/webhook/webhook.go

index c8b6bae724858c025a7000447697c48fc33a2f52..d451b77cf4878768ddba29d28012b1474c4d3cad 100644 (file)
@@ -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)
+}