Branches in one place and with a quick way to make a branch protected
Plan
1. Update Branches page
Dropdown open
And when it is protected, you get an additional option to let you manage the 'ability to push' and 'ability to merge'
Defaults for ability to push and ability to merge should both be Master
2. Remove the Protected Branches settings page
3. Remove the ability to set 'Default Branch' from the 'Edit settings' page
Original Problem
We now have 3 places to view/edit branches:
- Branches
- Settings => Protected branches
- Settings => Default branch
All of these should be in one location, namely branches.
I can see how maybe we need a special view for protected branches but then the branch view should link to that if I have rights and the default branch setting should happen there too.
Also, if I make a branch protected I should be able to do so without having to select 'ability to push' and 'ability to merge'. It is great that I can finetune those but by default the dropdowns should be set to something reasonable (what we had before being able to customize it).