Checkout a review branch for merge request

Problem to solve

As a reviewer, I want to checkout a branch that contains only the changes of the merge request, so I can review the changes easily.

Proposal

To checkout the code_review branch, we will need to know the following:

  • target branch
  • project Merge method
  • merge request Squash commits options

optional:

A review process in this extension such that we can:

  1. create a review branch
  2. add comment to line
  3. approve the merge request
  4. merge

We would do 2 - 4 in Gitlab anyway, but it would be easier to review a large changes in vs code, since vs code provides languages support and is able to show large files.

Further details

Why don't directly checkout the merge request?

Better tooling support. The target branch is moving, using vscode to diff the merge request and target branch shows changes from both branches. Only changes from merge request are need to be reviewed.

Links / references