Handle rules for deleted branches
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
The old flow for protected branches allowed to:
- protect a branch that does not yet exist
- display a protection rule for a branch that has been deleted
Giving the nature of the new flow, we should mark the rule for a non-existing branch both on the list of branch rules and on the details page.
We should handle creating a wildcard rule from a given string, if a branch of that name does not yet exist (see the screenshots below).
Old flow for protecting a branch
protect a branch that does not yet exist
step | screenshot |
---|---|
entering a name of a branch that doesn't exist prompts to set a wildcard of that exact string | ![]() |
a protection rule is displayed with a note | ![]() |
display a protection rule for a branch that has been deleted
Edited by 🤖 GitLab Bot 🤖