Skip to content

Created branch message after "new branch" is clicked should include a copy-to-clipboard button

Usecase

I want to quickly be able to copy the branch name in order to git checkout X in my terminal after I did a git pull to pull the newly created branch I created with the new branch button from the page I was routed to after creating the branch.

Problem

When you create a new branch with the new branch button on an issue you are automatically routed to the repository view with that branch being active.

Proposal

Currently: image

After: image

perhaps updating the styling in the process: image

tooltip should state: Copy branch to clipboard after click should state: Copied

Value

Efficiently be able to copy the branch name when you returned to the issue page after creating a new branch with the new branch button.

Related issues

https://gitlab.com/gitlab-org/gitlab-ce/issues/27796


cc: @smcgivern @victorwu @lbennett