Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
GitLab Community Edition
GitLab Community Edition
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 10,456
    • Issues 10,456
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 550
    • Merge Requests 550
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLab Community EditionGitLab Community Edition
  • Issues
  • #4106

Closed
Open
Opened Dec 15, 2015 by 🚄 Job van der Voort 🚀@JobV 
  • Report abuse
  • New issue
Report abuse New issue

Provide Squash option when merging MRs

  • feedback item: http://feedback.gitlab.com/forums/176466-deprecated-feedback-forum/suggestions/5662794-provide-squash-option-when-merging-merge-requests

Add a checkbox "Squash into one commit" below "Merge" button of a merge request. The default state of that checkbox should be configurable per instance and per project.

The UI would ask for a commit message (defaulting to branch name) and then execute the equivalent of 'git checkout other-branch; git merge --squash this-branch; git commit -m "commit-message", close the merge request and delete the branch (if the other checkbox is ticked).

This is a common workflow in projects and not supporting it causes a lot of confusion and extra work.

Related issues

Assignee
Assign to
Epic
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
1
Labels
feature proposal
Assign labels
  • View project labels
Reference: gitlab-org/gitlab-ce#4106