Browse Source

Fix webhook bug (#10427)

Co-authored-by: techknowlogick <matti@mdranta.net>
for-closed-social
Lunny Xiao 4 years ago
committed by GitHub
parent
commit
542bd59239
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/notification/webhook/webhook.go

+ 2
- 2
modules/notification/webhook/webhook.go View File

@ -691,12 +691,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)
} }
} }

Loading…
Cancel
Save