go-bitbucket icon indicating copy to clipboard operation
go-bitbucket copied to clipboard

How to parse hooks ?

Open Bhogayata-Keval opened this issue 3 years ago • 4 comments

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

Bhogayata-Keval avatar Jan 04 '22 08:01 Bhogayata-Keval

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

arnestorksen avatar Jan 06 '22 09:01 arnestorksen

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

Bhogayata-Keval avatar Jan 07 '22 05:01 Bhogayata-Keval

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

ktrysmt avatar Jan 12 '22 01:01 ktrysmt

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

ktrysmt avatar Jan 12 '22 01:01 ktrysmt