I created a webhook in Bitbucket Cloud (Repository -> Push) that checks if the branch name is valid (bob_12345_ticket_description).
Branch must have the ticket number (12345) or it will throw an error (I tried a few different HTTP errors), with the purpose of stopping the push, come to find out it doesn't work how I thought it would (doesn't stop the push).
Is there a way to stop a push using a webhook?