1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 17:44:27 +00:00

Fix webhook bug (#10427) (#10432)

Co-authored-by: techknowlogick <matti@mdranta.net>
This commit is contained in:
Lunny Xiao 2020-02-24 12:48:30 +08:00 committed by GitHub
parent d3b6f001fe
commit b51d7c459e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -689,12 +689,12 @@ func (m *webhookNotifier) NotifyDeleteRef(pusher *models.User, repo *models.Repo
if err := webhook_module.PrepareWebhooks(repo, models.HookEventDelete, &api.DeletePayload{ if err := webhook_module.PrepareWebhooks(repo, models.HookEventDelete, &api.DeletePayload{
Ref: refName, Ref: refName,
RefType: "branch", RefType: refType,
PusherType: api.PusherTypeUser, PusherType: api.PusherTypeUser,
Repo: apiRepo, Repo: apiRepo,
Sender: apiPusher, Sender: apiPusher,
}); err != nil { }); err != nil {
log.Error("PrepareWebhooks.(delete branch): %v", err) log.Error("PrepareWebhooks.(delete %s): %v", refType, err)
} }
} }