I want to configure a post-commit hook on all repositories to POST to an endpoint. It seems like I can do this globally with scriptrunner rather than enable in each repository.
Any examples would be helpful
Admins can define post-receive hooks that apply to all current and future repos: https://scriptrunner.adaptavist.com/latest/bitbucket/PostReceiveHooks.html
Posting to an endpoint is simple enough, there is an example (in the event handling docn but should be similar) here: https://scriptrunner.adaptavist.com/latest/bitbucket/StashEventHandlers.html#_post_to_em_slack_em_when_a_repository_is_forked
It looks like you're new here. Sign in or register to get started.