Terraform-provider-azuredevops: Default branch name for new repositories

Created on 28 Jan 2021  路  7Comments  路  Source: microsoft/terraform-provider-azuredevops

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

resource to "Default branch name for new repositories" and choose the branch name ("main" or other)

new-resource blocked

All 7 comments

Hi @FernandoMiguel azuredevops_git_repository support set the default_branch

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

this PR is about a different resource than azuredevops_git_repository

it's about this
image

this is in the project settings

@FernandoMigue This API is not a public API, we can not add this resource to ADO based on the current azuredevops-go-SDK

@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
https://github.com/microsoft/azure-devops-go-api/issues/96

@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

Was this page helpful?
0 / 5 - 0 ratings