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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.