reconquest / atlassian-external-hooks

External Hooks plugin for Atlassian Bitbucket
https://external-hooks.reconquest.io
Other
44 stars 37 forks source link

Configure via API #62

Closed ispyinternet closed 1 year ago

ispyinternet commented 6 years ago

Would love to be able to set a hook using the bitbucket REST API endpoint. Any chance you can hook into this?

dborisov commented 4 years ago

Hey guys is there any plan to implement this soon? Manual hook configuration on 100+ repos is a big problem.

kovetskiy commented 4 years ago

@dborisov Hi!

The hook can be turned on/off and configured using built-in Bitbucket REST API as any other hooks, but we have implemented a tool in a separated repository: https://github.com/reconquest/bitbucket-external-hook

Here is a simple example of how we enable & configure the pre-receive hook in a repository: https://github.com/reconquest/atlassian-external-hooks/blob/master/testutils/create-prereceive-hook

You might also be interested in https://github.com/kovetskiy/stacket

Sorry for forgetting to mention it here in the issue.

dborisov commented 4 years ago

@kovetskiy Great! Thanks man!