run logic before I can upstream commit to bitbucket. commit push should fail on logic failure. Maybe some kind of hook, which triggers logic?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.