Skip to content

Handle cleaning up duplicate auto-deploy branches

Yorick Peterse requested to merge duplicate-branch-cleanup into master

If a branch is added or removed when we clean them up, some branches may appear again in the response of the next paginated API call. To handle this, we now use a Set instead of an Array when collecting branches to remove.

This should fix errors such as the one seen in https://ops.gitlab.net/gitlab-org/release/tools/-/jobs/3310235.

Merge request reports