run logic before I can upstream commit to bitbucket. commit push should fail on logic failure. Maybe some kind of hook, which triggers logic?
Hi @Pramod Bisht
Looks like the best way to achieve this would be to create a pre-push hook to run this logic and refuse the push if it fails.
For now, Bitbucket does not provide an option to manage server-side hooks, this is currently under consideration for the following Feature Request:
With this in mind, you would need to perform this action on client-side hooks. We have an article explaining how you can achieve this:
Cheers,
Mat
It looks like you're new here. Sign in or register to get started.