gitlab - don't target master if target branch is deleted
In our current GitLab setup, we require each merge request to target a weekly business testing branch. However when these branches get deleted, any merge request that hasn't been merged yet will automatically change its target to master. This seems like the worst possible outcome as master is prod and we absolutely don't want to merge into prod without doing business testing first.
Does anyone know if there is a way to change this behaviour in gitlab settings? I had a look around but couldn't find anything.
1 Reply
unsure on exact setup but maybe have main not be the production branch if you require that kind of setup