Skip to content

Draft: Add bulk branch deletion API

Lee Tickett requested to merge 15976-add-bulk-branch-deletion into master

What does this MR do and why?

Related to #15976

Introduces a new worker and API endpoint to queue up the deletion of multiple branches using a regular expression.

Use case/example: I am working on a project forking the GitLab project and it comes with 12,000+ branches. I have to write a little bash script which takes quite some hours to delete all the branches 🤣

Screenshots or screen recordings

image

How to set up and validate locally

  1. Create or find a project with multiple branches
  2. Make a DELETE API request as per the docs/screenshot above

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Lee Tickett

Merge request reports