From 85e157bb10da2c1142251824e0f79a33e719bb7a Mon Sep 17 00:00:00 2001 From: Matheus Moraes Date: Wed, 6 Sep 2023 07:17:23 -0300 Subject: [PATCH] fix(server/api/repo): Fix repair webhook host (#2372) Fixes https://github.com/woodpecker-ci/woodpecker/issues/2371 Similar change to https://github.com/woodpecker-ci/woodpecker/pull/1869/files#diff-3cd73db84155aa0447a17dadc8f50271d646fcf6132606cf2ab703cc7b80eb38R113 --- server/api/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/repo.go b/server/api/repo.go index 0bf0ff47d..2e269d8cb 100644 --- a/server/api/repo.go +++ b/server/api/repo.go @@ -420,7 +420,7 @@ func RepairRepo(c *gin.Context) { } // reconstruct the link - host := server.Config.Server.Host + host := server.Config.Server.WebhookHost link := fmt.Sprintf( "%s/api/hook?access_token=%s", host,