smarkets / marge-bot

A merge-bot for GitLab
BSD 3-Clause "New" or "Revised" License
693 stars 136 forks source link

Source branches are not deleted when using batch mode #354

Open sdclarke opened 1 year ago

sdclarke commented 1 year ago

When using batch mode with the an MR set to delete the source branch, the branch will not be deleted as the target branch is pushed to directly by Marge Bot.

nanonyme commented 1 year ago

This is not actually the worst part. In batch merge Marge also pushes to the source branches which can result in a lot of unneeded pipelines. Cleaning up needs some work.

sdclarke commented 1 year ago

This is not actually the worst part. In batch merge Marge also pushes to the source branches which can result in a lot of unneeded pipelines. Cleaning up needs some work.

Would what you're describing be solved by using the --skip-ci-batches flag?

--skip-ci-batches     Skip CI when updating individual MRs when using batches   [env var: MARGE_SKIP_CI_BATCHES] (default: False)
nanonyme commented 1 year ago

Sounds indeed possible. We'll give it a try.

xtermi2 commented 1 year ago

We have also experienced this issue.