Skip to content

Remove source branch option "forgotten" after any edits to MR (re-assigning, changing labels, etc)

Summary

Remove source branch option "forgotten" after any edits to MR (re-assigning, changing labels, etc). Given the option is not edited, it shouldn't be reset.

Steps to reproduce

  1. Create MR, check Remove source branch when merge request is accepted.

    image

    (MR will show correct option)

    image

  2. From the MR view, change anything on the right side pane (assign the MR to another user, change labels, etc)

    image

  3. Reload MR page. Now the option to Remove source branch will be unchecked

    image

Expected behavior

The Remove source branch should not be reset on an MR update, unless the option is explicitly changed by the user.