GitLab Code quality

Source branches kept after merge

Part of the GitLab project posture check · fix arrives as a guide

What it is

The project does not delete source branches when merge requests are merged.

Why it matters

Merged branches accumulate indefinitely, making the branch list hard to navigate and leaving superseded code where it can still be checked out or referenced by mistake.

How to fix it

Enable the delete-source-branch default in the project's merge request settings, and prune the existing merged branches once.

Run them all on your app

Connect your repo and your live services with read-only scopes. The first scan is free, and nothing changes without your approval.