terraform-provider-azuredevops icon indicating copy to clipboard operation
terraform-provider-azuredevops copied to clipboard

add repository status in azuredevops_git_repository

Open ceciliasharp opened this issue 2 years ago • 3 comments

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

I need to be able to determine if a repository is disabled or not.

New or Affected Resource(s)

  • azuredevops_git_repository
  • azuredevops_git_repositories

Potential Terraform Configuration

data "azuredevops_git_repository" "r" {
  project_id = <id>
  name       = <repoName>
}

output "name" {
  value = data.azuredevops_git_repository.r.status
}

ceciliasharp avatar Mar 17 '22 16:03 ceciliasharp

SDK missing property isDisabled: https://github.com/microsoft/azure-devops-go-api/blob/dev/azuredevops/v6/git/models.go#L1938

Response example:

{
    "id": "",
    "name": "test",
    "url": "",
    "project": {},
    "size": 0,
    "remoteUrl": "",
    "sshUrl": "",
    "webUrl": "https://dev.azure.com/test/test/_git/test",
    "_links": {    },
    "isDisabled": false
}

xuzhang3 avatar Mar 22 '22 09:03 xuzhang3

Please vote on this issue: https://developercommunity.visualstudio.com/t/Update-of-the-Go-SDK-to-include-new-feat/10186787

aristosvo avatar Nov 01 '22 10:11 aristosvo