Skip to content

Commit b51d7c4

Browse files
Fix webhook bug (#10427) (#10432)
Co-authored-by: techknowlogick <[email protected]>
1 parent d3b6f00 commit b51d7c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/notification/webhook/webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,12 @@ func (m *webhookNotifier) NotifyDeleteRef(pusher *models.User, repo *models.Repo
689689

690690
if err := webhook_module.PrepareWebhooks(repo, models.HookEventDelete, &api.DeletePayload{
691691
Ref: refName,
692-
RefType: "branch",
692+
RefType: refType,
693693
PusherType: api.PusherTypeUser,
694694
Repo: apiRepo,
695695
Sender: apiPusher,
696696
}); err != nil {
697-
log.Error("PrepareWebhooks.(delete branch): %v", err)
697+
log.Error("PrepareWebhooks.(delete %s): %v", refType, err)
698698
}
699699
}
700700

0 commit comments

Comments
 (0)