Does someone know a method to restrict release branch creation from UI?
Till now, we used this class: import com.atlassian.bitbucket.event.branch.BranchCreationRequestedEvent
but now its deprecated.
After some searches on google i found out that i have to implement the PreRepositoryHook<BranchCreationHookRequest> instead. Can someone give me an example on how to use that?
Thank you