Skip to content

Commit

Permalink
fix(vcs): missing data when getting hook by its ID. #6292 (#6293)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored Sep 23, 2022
1 parent 96fdec6 commit f18ed88
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 f18ed88

Please sign in to comment.