Is there a way to use ScriptRunner to prevent branch deletion performed through the UI? (for stash versions prior to 3.10 which don't have this support built-in).
I can see it's possible with a pre-receive hook, but I think this wouldn't prevent a delete through the UI. I had a look through the event hooks but I couldn't see a CancelableEvent for branch deletion.