Skip to content

Commit 542bd59

Browse files
Fix webhook bug (#10427)
Co-authored-by: techknowlogick <[email protected]>
1 parent 4e912d2 commit 542bd59

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
@@ -691,12 +691,12 @@ func (m *webhookNotifier) NotifyDeleteRef(pusher *models.User, repo *models.Repo
691691

692692
if err := webhook_module.PrepareWebhooks(repo, models.HookEventDelete, &api.DeletePayload{
693693
Ref: refName,
694-
RefType: "branch",
694+
RefType: refType,
695695
PusherType: api.PusherTypeUser,
696696
Repo: apiRepo,
697697
Sender: apiPusher,
698698
}); err != nil {
699-
log.Error("PrepareWebhooks.(delete branch): %v", err)
699+
log.Error("PrepareWebhooks.(delete %s): %v", refType, err)
700700
}
701701
}
702702

0 commit comments

Comments
 (0)