Feature Request: Add default_branch property to Groups REST API
Problem to solve
On the current project, we are trying to represent common configuration for our groups and projects, such as merge request approval rules and others, in Terraform. For this we used the official GitLab provider. One of the configurations that we wanted was to set the initial default branch name on a group level. Of course, we can set the default branch within individual projects, but within the GitLab UI there is the possibility of setting the default branch on a group level, after which new projects would inherit this default branch. However, I could not find this feature in the Groups REST API, and subsequently not in the Terraform provider.
Currently, we are using a workaround - create the group using Terraform first, then go to the UI and set the default branch in the group, and then go back to Terraform and create the projects within that group. This successfully sets a custom default branch for the new projects.
Proposal
Add default_branch property in the Groups REST API (at least for when creating a group and updating a group).