Skip to content

[WIP] Add option to create merge request when editing/creating a file

Fixes #3059 (closed). This PR adds an option to create a merge request directly after creating/updating a file ("blob"). If the user changes the name of the branch, a new option is shown.

One thing in particular remains to be done:

  • On the new MR, target branch should be set to the branch the user was originally on instead of using always 'master'.

A few improvements that could be done (maybe in separate issues):

  • Reduce code duplication in the blobs views.
  • Add controller tests for creating/editing blobs.
  • Add service tests for Files::CreateService.

Merge request reports