Skip to content

Commit

Permalink
fix(vcs): missing data when getting hook by its ID. #6292
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux committed Sep 20, 2022
1 parent 404eea5 commit 6fcee38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/vcs/bitbucketcloud/client_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6fcee38

Please sign in to comment.