Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abiity to initialize the default repository #1067

Open
themaroqa opened this issue May 31, 2024 · 0 comments
Open

Abiity to initialize the default repository #1067

themaroqa opened this issue May 31, 2024 · 0 comments

Comments

@themaroqa
Copy link

themaroqa commented May 31, 2024

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

When we create a new project using the azuredevops_project resource (https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/resources/project) it creates also a repository with the same name that is Uninitialized. What I want to achieve is to be able to initialize that repository for example importing it from another repository.

New or Affected Resource(s)

  • azuredevops_project
  • azuredevops_git_repository ??

Potential Terraform Configuration

Potential suggestion:

resource "azuredevops_project" "example" {
  name               = "Example Project"
  visibility         = "private"
  version_control    = "Git"
  work_item_template = "Agile"
  default_repository_initialization {
    init_type             = "Import"
    source_type           = "Git"
    source_url            = "https://dev.azure.com/example-org/private-repository.git"
    service_connection_id = azuredevops_serviceendpoint_generic_git.example-serviceendpoint.id
  }
}

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants