ktrysmt / go-bitbucket

Bitbucket API library for Golang.
Apache License 2.0
182 stars 146 forks source link

How to parse hooks ? #180

Open Bhogayata-Keval opened 2 years ago

Bhogayata-Keval commented 2 years ago

Does the package contain any method to parse the webhooks on specific events (i.e. "push" event) ? Looking for something similar to this ... https://github.com/xanzy/go-gitlab/blob/v0.53.0/event_parsing.go#L96 > ParseHook

arnestorksen commented 2 years ago

I was looking for the same and found this: https://github.com/go-playground/webhooks

Bhogayata-Keval commented 2 years ago

Thanks, @arnestorksen, that worked for me ! I was hoping if they also add this functionality here.. so that we don't have to use a different SDK for parsing ! I will keep a watch on this issue for the update from @ktrysmt

ktrysmt commented 2 years ago

@Bhogayata-Keval @arnestorksen I will consider. You can also use the suggested library. https://github.com/go-playground/webhooks Thank you.

ktrysmt commented 2 years ago

Reference: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-webhooks/#api-hook-events-get