From #3152637-37: Opt-in to the Drupal.org Issue Forks and Merge Requests beta:

that would be nice to have an option to generate the full git command with remote URL and proper remote name.

Fewer interactions with sidebar would be better for newcomers and will save few seconds in general.
Now I have to copy remote-name and remote URL separately (one interaction to expand the Clone block and 2 copy interaction).

I also noticed that now a maintainer would work more with different remotes on the single project, so I propose adding a recommendation to rename "origin" remote name to "< project_name >" remote name. This will reduce possible unintended pushes to the wrong repo during the work on multiple projects.

Once a merge request is open, GitLab’s UI does have a button to show more instructions:
Screenshot of Git instructions
The “following these guidelines” link at the bottom goes to https://git.drupalcode.org/help/user/project/merge_requests/reviewing_an... (We of course can’t really customize the GitLab UI, these instructions will only change when the GitLab product makes changes.)

Remaining tasks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm created an issue. See original summary.

drumm credited voleger.

drumm’s picture

drumm’s picture

Assigned: Unassigned » drumm
drumm’s picture

FileSize
95.52 KB

Screenshot of issue fork with Git instructions

With this additional instruction, and everything else we’ve added, I think it is time to move issue forks into place next to files in the main content area. This is not styled yet, and I need a toggle to hide/show instructions. This should only be reviewed for content.

  • drumm committed 7a583e7 on 7.x-3.x
    Issue #3155137: Add full Git commands for working with issue forks, move...
drumm’s picture

Status: Active » Fixed

Issue forks are now in the main content area and have a “Show commands” toggle.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.