I can use Script Runner to set up a pre-hook naming regex rule for branch names so that they have to contain a Jira issue number (or at least a string that's formatted like a Jira issue number):
feature/[A-Z]{2,9}-\d+.*
This allows me to push "feature/ADBD-1234" to the repo, but not "feature/ABDC", or "myBranchName", which is what I want.
However, this only works when creating a branch locally and trying to push it into the repo. In Bit Bucket's web UI I can create branches and name them whatever I want and Script Runner doesn't seem to be set up to catch it.
Does anyone know how to make it such that branch naming policies are also enforced when creating branches in the Bit Bucket web UI?
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.