From 82dd00873d3c20ac875eb4ec120a8c58721c6760 Mon Sep 17 00:00:00 2001 From: hiifong Date: Sun, 13 Apr 2025 10:24:32 +0800 Subject: [PATCH] fix webhook url (#34186) Co-authored-by: wxiaoguang (cherry picked from commit aada0370e7d72a591d58788f6db76bdbc3dddbb7) --- models/webhook/webhook_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/webhook/webhook_test.go b/models/webhook/webhook_test.go index 7f0abbd8bb..e70c3b2557 100644 --- a/models/webhook/webhook_test.go +++ b/models/webhook/webhook_test.go @@ -91,7 +91,7 @@ func TestWebhook_EventsArray(t *testing.T) { func TestCreateWebhook(t *testing.T) { hook := &Webhook{ RepoID: 3, - URL: "www.example.com/unit_test", + URL: "https://www.example.com/unit_test", ContentType: ContentTypeJSON, Events: `{"push_only":false,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":true}}`, }