lab icon indicating copy to clipboard operation
lab copied to clipboard

`lab mr merge` does not respect delete source branch

Open JohnVillalovos opened this issue 3 years ago • 3 comments

I create an mr using lab mr create --remove-source-branch and it shows that the source branch will be removed.

Then I do lab mr merge and then it no longer shows it will remove the source branch.

Using lab version:

$ lab --version
lab version 0.24.0

JohnVillalovos avatar May 02 '22 17:05 JohnVillalovos

Hey @JohnVillalovos thanks for reporting that.

Unfortunately I count to reproduce your issue, I've also played with the project setting under Merge Request for the default of delete source branch on merge and saw no difference in it, also I've tested on lab version v0.24.0-3-g73bada2(a bit behind master), so It should have been fixed by another commit, can you test on your project with the latest master version or g73bada2?

If that solves the issue, let me know, as I will try to speed up a 0.25.0 release to get it fixed.

zampierilucas avatar May 03 '22 12:05 zampierilucas

So I am doing this on an MR which is still running the CI. Not sure if that is how you tested it. So by doing lab mr merge it sets the MR to merge after the pipeline has passed.

JohnVillalovos avatar May 03 '22 13:05 JohnVillalovos

Ooh, yeah, I don't have the setting to wait for pipeline completion before merge turned on, I'll do a bit more testing and get back to you

zampierilucas avatar May 03 '22 16:05 zampierilucas