-
- Downloads
Add button to delete all merged branches
It adds a button to the branches page that the user can use to delete all the branches that are already merged. This can be used to clean up all the branches that were forgotten to delete while merging MRs. Fixes #21076.
Showing
- app/assets/stylesheets/framework/buttons.scss 4 additions, 0 deletionsapp/assets/stylesheets/framework/buttons.scss
- app/controllers/projects/branches_controller.rb 8 additions, 1 deletionapp/controllers/projects/branches_controller.rb
- app/services/delete_merged_branches_service.rb 18 additions, 0 deletionsapp/services/delete_merged_branches_service.rb
- app/views/projects/branches/index.html.haml 2 additions, 0 deletionsapp/views/projects/branches/index.html.haml
- app/workers/delete_merged_branches_worker.rb 20 additions, 0 deletionsapp/workers/delete_merged_branches_worker.rb
- changelogs/unreleased/21076-deleted-merged-branches.yml 4 additions, 0 deletionschangelogs/unreleased/21076-deleted-merged-branches.yml
- config/routes/project.rb 1 addition, 0 deletionsconfig/routes/project.rb
- config/sidekiq_queues.yml 1 addition, 0 deletionsconfig/sidekiq_queues.yml
- doc/api/branches.md 18 additions, 0 deletionsdoc/api/branches.md
- lib/api/branches.rb 12 additions, 0 deletionslib/api/branches.rb
- spec/controllers/projects/branches_controller_spec.rb 54 additions, 4 deletionsspec/controllers/projects/branches_controller_spec.rb
- spec/requests/api/branches_spec.rb 16 additions, 0 deletionsspec/requests/api/branches_spec.rb
- spec/services/delete_merged_branches_service_spec.rb 54 additions, 0 deletionsspec/services/delete_merged_branches_service_spec.rb
- spec/workers/delete_merged_branches_worker_spec.rb 19 additions, 0 deletionsspec/workers/delete_merged_branches_worker_spec.rb
app/workers/delete_merged_branches_worker.rb
0 → 100644
Please register or sign in to comment