Add link "Open in Workspace" on a Merge Request page
MR: Pending
Description
As a developer reviewing a merge request, I want to be able to create a new remote development workspace from the MR view so I can run the modified code without reconfiguring my local environment.
The Merge Request view has a Code
button similar to the one found in the Repository view. From the MR view, however, you can not create a new workspace like you can in the Repository view.
MR reviews are one of the main value propositions for remote development, as they reduce the time developers have to spend reconfiguring their local environments.
The repository view (for reference):
Related issues
Acceptance Criteria
TODO: Fill out (required)
-
In the Merge Request view, the Code button shows an option to create a new workspace if the associated project has a valid devfile and there is an agent configured for remote development. -
A new workspace is created from the project and the project cloner checks out the current branch associated with the MR.
Technical Requirements
TODO: Fill out or delete [If applicable, please list out any technical requirements for this feature/enhancement.]
Design Requirements
The UI should be identical to the button found on the Repository page.
Impact Assessment
Providing more visibility to workspaces for those who have them configured will drive adoption and awareness of the feature. Making it more easily accessible will promote the creation of more workspaces.