Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,152
    • Issues 44,152
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,432
    • Merge requests 1,432
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #29274
Closed
Open
Created Jun 05, 2019 by James Ramsay (ex-GitLab)@jramsay-gitlab🔴Contributor

View arbitrary commit in merge request for review purposes

Problem to solve

When practicing high velocity development and merge requests are very small, as a reviewer or author I want to be able to open previous commits that have already merged into the target branch in the merge request for context.

This could also be used for post-merge code review by creating an empty merge from the default branch, and simply adding any commit to the merge request.

This is similar to rationale for https://gitlab.com/gitlab-org/gitlab-ce/issues/51823 and https://gitlab.com/gitlab-org/gitlab-ce/issues/13950

Intended users

Primarily developers, although this benefits anybody performing a code review that wants to increase the scope of the review.

Further details

Proposal

Mockup add commit Mockup search commits Mockup switching commits/comparison
Artboard_20190605_45716 Artboard_20190605_45729 Artboard_20190606_112127

As a reviewer, looking at a merge request, I will be able to add arbitrary commits by SHA to the merge request, that can be reviewed and commented on.

In this first iteration the interface would be highly minimal and involve directly adding a valid SHA, subsequent iteration would add search interface.

The key problems to solve in the first iteration are:

  • switching to view a commit that was added, and differentiating it from a commit that may be in the merge request
  • leaving comments on these commits

What does success look like, and how can we measure that?

Measure the number of people adding extra commits to code reviews.

Links / references

Edited Aug 14, 2019 by Bob Van Landuyt
Assignee
Assign to
Time tracking