I have managed to set up some custom checks on Bitbucket server and they work ok.
However I seemingly need Bitbucket Premium to make them required, but I don't think there is a Premium option for Bitbucket Server. So how do I setup required merge checks for Bitbucket Server?