-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default branch name for new repositories #282
Comments
Hi @FernandoMiguel resource "azuredevops_git_repository" "repo" {
project_id = data.azuredevops_project.project.id
name = "my repo"
default_branch = "refs/heads/master"
initialization {
init_type = "Clean"
}
} |
Then the docs need to be updated |
@FernandoMigue This API is not a public API, we can not add this resource to ADO based on the current azuredevops-go-SDK |
I understand. Thank you. |
Created a feature request with azuredevops-go-SDK |
@xuzhang3 Even for setting the default branch of a azure_devops_git_repository, if the default_branch CAN be set, the docs are still off. They only reference default_branch as an exported attribute, not as a settable argument. https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/resources/git_repository |
Community Note
Description
resource to "Default branch name for new repositories" and choose the branch name ("main" or other)
The text was updated successfully, but these errors were encountered: