Is it possible to restrict new feature branch creation with a naming standard (use similar regex /[A-Z]{2,}-\d+/g) for Bitbucket or another method maybe via webhook?
Thanks!
Hi @Sonam.Moga1,
I'm afraid there is no such feature available in Bitbucket Cloud. We have a feature request that you can vote for and watch here:
Webhooks can send a request to a server of yours after a certain event occurs. For example, if you use push as a trigger, the webhook will send a request after a push is made, so it cannot prevent the push.
You could use a webhook with a push trigger to check the name of the branch that is pushed, and in case it doesn't match a specific pattern, use our API to delete the branch:
Please keep in mind the following:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.