From 010da2e1749fa9eb201f575a703f30a6e2e2cd77 Mon Sep 17 00:00:00 2001 From: Matheus Moraes Date: Wed, 13 Sep 2023 03:57:12 -0300 Subject: [PATCH] fix(server/api/repo): Fix repair webhook host (#2372) (#2452) Backports #2372 to release 1.0 Fixes https://github.com/woodpecker-ci/woodpecker/issues/2371 Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com> --- 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 7b97a9eb5..db8b24b8b 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/hook?access_token=%s", host,