From 6fcee38aa489ceff52345e7c3ebb3e8fc322dab9 Mon Sep 17 00:00:00 2001 From: Steven Guiheux Date: Tue, 20 Sep 2022 14:39:49 +0200 Subject: [PATCH] fix(vcs): missing data when getting hook by its ID. #6292 --- engine/vcs/bitbucketcloud/client_hook.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/vcs/bitbucketcloud/client_hook.go b/engine/vcs/bitbucketcloud/client_hook.go index 8b52cceddf..f3e8f73ca8 100644 --- a/engine/vcs/bitbucketcloud/client_hook.go +++ b/engine/vcs/bitbucketcloud/client_hook.go @@ -145,6 +145,9 @@ func (client *bitbucketcloudClient) UpdateHook(ctx context.Context, repo string, } bitbucketHook.Events = hook.Events + bitbucketHook.URL = hook.URL + bitbucketHook.Description = "CDS webhook" + bitbucketHook.Active = true b, err := json.Marshal(bitbucketHook) if err != nil { return sdk.WrapError(err, "cannot marshal body %+v", bitbucketHook)