We want to setup test branches for our repository (e.g. test/*). We want to automatically run the pipeline for anytime a branch with the prefix of "test/" (e.g. test/new-feature) is updated.
However, we only want 1 active "test/" branch and block the pipeline if another developer pushes a branched called "test/other-new-feature". This way code in the test environment doesn't get overridden by mistake.
Is this possible within pipeline YML file?
Thanks.