feat: prioritize main/master branch selection (#7520)

This commit is contained in:
Andras Bacsai
2025-12-15 15:47:57 +01:00
committed by GitHub
2 changed files with 19 additions and 0 deletions
@@ -128,6 +128,7 @@ class GithubPrivateRepository extends Component
$this->loadBranchByPage();
}
}
$this->branches = sortBranchesByPriority($this->branches);
$this->selected_branch_name = data_get($this->branches, '0.name', 'main');
}