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

index 9ca73db05135d5df2d283ea98ab40cda1d138d06..bc21fb6113d60f70277623f18976193fcda2e762 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)
+}