-
- Downloads
Merge branch 'api-remove-branch' into 'master'
New rules for protected branches This MR change permissions logic for branch removal. Changes listed below: Before * developer can remove branch with terminal but not in UI * masters can remove any branch with UI even protected one * force-push to protected branch is not allowed but remove is allowed After * none can force push or remove protected branches * developers and masters can remove normal branches with console and UI
No related branches found
No related tags found
Showing
- app/controllers/projects/branches_controller.rb 2 additions, 7 deletionsapp/controllers/projects/branches_controller.rb
- app/helpers/branches_helper.rb 11 additions, 0 deletionsapp/helpers/branches_helper.rb
- app/services/delete_branch_service.rb 46 additions, 0 deletionsapp/services/delete_branch_service.rb
- app/views/projects/branches/_branch.html.haml 2 additions, 2 deletionsapp/views/projects/branches/_branch.html.haml
- app/views/projects/protected_branches/index.html.haml 5 additions, 5 deletionsapp/views/projects/protected_branches/index.html.haml
- lib/api/branches.rb 12 additions, 0 deletionslib/api/branches.rb
- lib/gitlab/git_access.rb 12 additions, 8 deletionslib/gitlab/git_access.rb
app/helpers/branches_helper.rb
0 → 100644
app/services/delete_branch_service.rb
0 → 100644
Please register or sign in to comment