summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-11-14 03:12:33 +0800
committerGitHub <noreply@github.com>2020-11-13 14:12:33 -0500
commitdd29ecb3337fb24931a386fe0cfbcecbe351f34b (patch)
treefc2c27ac23b7a0e1601cb547716b7f06e3fa94fa /modules
parenta31a6e39968bcbcd3728c436ce22053aeec93291 (diff)
downloadgitea-dd29ecb3337fb24931a386fe0cfbcecbe351f34b.tar.gz
gitea-dd29ecb3337fb24931a386fe0cfbcecbe351f34b.zip
Add missed sync branch/tag webhook (#13538)
Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/notification/webhook/webhook.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/notification/webhook/webhook.go b/modules/notification/webhook/webhook.go
index 9ca73db051..bc21fb6113 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)
+}