Skip to content

Automatically fork a project when not allowed to edit a file.

Douwe Maan requested to merge edit-on-fork into master

Fixes #3215 (closed).

To do:

  • Add tests

"Edit" button on file in a project the user does NOT have write access to

edit_file

Clicking will automatically create a fork

during_fork

When the fork has been created, the user is returned to the edit page on the original project with a notice

edit_notice

The user cannot change the target branch and is informed that editing will start an MR

edit_footer

Hitting "Commit changes" will commit and start an MR from my fork to the origin project

Screen_Shot_2015-12-17_at_23.38.08


"Create file, "Upload file" and "New directory" buttons in a project the user does NOT have write access to

new_directory

Clicking any of these options will automatically create a fork

during_fork

When the fork has been created, the user is returned to the tree page on the original project with a notice

new_directory_notice

Clicking "New directory" again will show the modal. The user cannot change the target branch and is informed that editing will start an MR

new_dir

Hitting "Create directory" will commit and start an MR from my fork to the origin project

Screen_Shot_2015-12-17_at_23.39.19

cc @dzaporozhets @skyruler

Merge request reports