Branches in forks can not be deleted by non-members after merge request is merged
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description: I am experiencing an intermittent issue with the "Delete source branch after merge" option in GitLab. Occasionally, after merging a Merge Request (MR) with this option enabled, the source branch is not deleted automatically.
This does not happen consistently, but it occurs from time to time. Here are some observations:
The option "Delete source branch after merge" was enabled before merging. The merge itself completes successfully. The branch is not protected under Settings > Repository > Protected branches. The pipeline (CI/CD) is passing successfully before the merge. The issue happens randomly and is not reproducible on demand. It seems like a potential bug in GitLab. Could you confirm if this is a known issue? Are there any logs or debugging steps I can check to better understand why this happens?
Additional Information:
GitLab version: [Specify your version] Self-hosted or GitLab.com? Any relevant logs or errors observed? Thank you for your help!