• James Ramsay's avatar
    Add project option for deleting source branch · 366b55f4
    James Ramsay authored
    Feature branches should be deleted after being merged into a stable
    branch like master. This is not universally true, and accidentally
    deleting a branch cause frustration and confusion for users.
    
    The change:
    - adds a Project Setting to control if 'Delete source branch' option is
    enabled or disabled for new merge requests
    - the Project Setting is on for new and existing projects
    
    The previous default behaviour can be restored by toggling the new
    setting.
    
    Historically, the behaviour was changed to delete the source branch as
    part of the merge widget refactor and then reverted 3 months later.
    
    - Widget refactor 8db76243
    - Behaviour reverted fd72b4ed
    366b55f4
all_models.yml 8.15 KB