Project branch name push rules should apply to new branches only
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Lets say you have old branch named Development
and you enabled the push rule later on under the project > repository > push rules > branch name
to prevent branches with capitalised letters, regex ^[a-z0-9\\-]{4,15}$
, you are not able to merge anything in to the branch Development
because the branch name is capitalised. Should the push rules not apply only to the branches that are created after you enable the push rule?
Steps to reproduce
- Create a branch with capitalised name let's say
Dev
- Enable push rule under the
project > repository > push rules > branch name
with regex^[a-z0-9\\-]{4,15}$
- You are no longer able to merge in to the branch
Dev
Edited by 🤖 GitLab Bot 🤖