Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab FOSS
GitLab FOSS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Packages
    • Packages
    • Container Registry
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #14413

Closed
Open
Opened Mar 18, 2016 by Sid Sijbrandij@sytses
  • Report abuse
  • New issue
Report abuse New issue

Enable "Remove branch" by default in MR widget, and remove option from New MR form

Resources

FE @jivanvl

Per https://gitlab.com/gitlab-org/gitlab-ce/issues/14413#note_23647458, we should:

  • remove the 'Remove branch' option when you create the MR
  • check it by default when you merge the MR, unless there are other MR's using the same source branch, or with that branch as a target branch (or hide it if the source branch is protected, as we already do)

Original description

We should make GitLab safe by default, but @ChadMalchow mentioned that removing the branch is a best practise and should be enabled by default.

Maybe we can do this if we have a way to restore the branch easily if you mistakenly delete it?

/cc @JobV @dzaporozhets

Related issues

  • Discussion
  • Designs
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
10
Labels
Deliverable P4 Plan [DEPRECATED] S4 customer customer success devops::plan feature frontend shortlist
Assign labels
  • View project labels
Reference: gitlab-org/gitlab-foss#14413