Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 42,633
    • Issues 42,633
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,397
    • Merge requests 1,397
  • 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 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLabGitLab
  • Merge requests
  • !1024
Merged
Created Jan 04, 2017 by Sean McGivern@smcgivernMaintainer14 of 14 tasks completed14/14 tasks
  • Review changes

  • Download
  • Email patches
  • Plain diff

Allow squashing MRs

  • Overview 109
  • Commits 22
  • Pipelines 13
  • Changes 37

I still need to:

  • Handle the case where the * branch is protected (ugh).
  • Return early in the squash service when there is only one commit in the MR diff.
  • Add this to the API.
  • Add documentation.
  • Add a changelog entry.
  • Add some functional tests.
  • Backport changes to CE:
    • Repository#merge method signature.
    • CSS changes for .merge-param-checkbox, removal of &.right a and addition of .modify-merge-commit-link.
    • Removal of right class from .accept-control which contains the "modify commit message" toggle.
    • Moving source branch deletion to its own partial.
    • Add early return and comment to that partial in EE.
    • MergeRequestsHelper#merge_params.
    • MergeService#log_merge_error provides the collapsed reference for an MR.
    • Add csv branch to test_env.rb.

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/150.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: squash