Skip to content

Pin the default branch to the top of the protected branches list

Problem

Currently the default branch is not always at the top protected branches list.

The ideal situation would be for the default branch to display at the protected branches list.

Screenshots

image

Proposal

In app/controllers/projects/settings/repository_controller.rb order @protected_branches by default branches.

Edited by Jiaan Louw