Browse Source

Fix webhook bug (#10427) (#10432)

Co-authored-by: techknowlogick <matti@mdranta.net>
tags/v1.11.2
Lunny Xiao 4 years ago
parent
commit
b51d7c459e
No account linked to committer's email address
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

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


Loading…
Cancel
Save