From 9259f84e56125e70925b73ea3f7f6fb0ec39dcfa Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Mon, 18 Mar 2024 09:53:34 +0000 Subject: [PATCH] Fix getting webhook URL info Signed-off-by: Gabriel Adrian Samfira --- runner/pool/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/pool/pool.go b/runner/pool/pool.go index ac8eb4e2..18bc81b2 100644 --- a/runner/pool/pool.go +++ b/runner/pool/pool.go @@ -2206,7 +2206,7 @@ func (r *basePoolManager) GetWebhookInfo(ctx context.Context) (params.HookInfo, for _, hook := range allHooks { hookInfo := hookToParamsHookInfo(hook) - if strings.EqualFold(hookInfo.URL, r.urls.webhookURL) { + if strings.EqualFold(hookInfo.URL, r.urls.controllerWebhookURL) || strings.EqualFold(hookInfo.URL, r.urls.webhookURL) { return hookInfo, nil } }