diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-02-24 02:49:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-23 13:49:40 -0500 |
commit | 542bd59239d99a5fd94ae77ed68b05348532be30 (patch) | |
tree | 97a972ae19d6b97d0f891632071404e7c68db447 /modules | |
parent | 4e912d2ed869809066c98cf4ba3675de8086c29d (diff) | |
download | gitea-542bd59239d99a5fd94ae77ed68b05348532be30.tar.gz gitea-542bd59239d99a5fd94ae77ed68b05348532be30.zip |
Fix webhook bug (#10427)
Co-authored-by: techknowlogick <matti@mdranta.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/notification/webhook/webhook.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/notification/webhook/webhook.go b/modules/notification/webhook/webhook.go index df41078fb0..c1795d537b 100644 --- a/modules/notification/webhook/webhook.go +++ b/modules/notification/webhook/webhook.go @@ -691,12 +691,12 @@ func (m *webhookNotifier) NotifyDeleteRef(pusher *models.User, repo *models.Repo if err := webhook_module.PrepareWebhooks(repo, models.HookEventDelete, &api.DeletePayload{ Ref: refName, - RefType: "branch", + RefType: refType, PusherType: api.PusherTypeUser, Repo: apiRepo, Sender: apiPusher, }); err != nil { - log.Error("PrepareWebhooks.(delete branch): %v", err) + log.Error("PrepareWebhooks.(delete %s): %v", refType, err) } } |