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

add repository status in azuredevops_git_repository #564

Closed
ceciliasharp opened this issue Mar 17, 2022 · 5 comments · Fixed by #1024
Closed

add repository status in azuredevops_git_repository #564

ceciliasharp opened this issue Mar 17, 2022 · 5 comments · Fixed by #1024

Comments

@ceciliasharp
Copy link

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
}
@xuzhang3
Copy link
Collaborator

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
}

@aristosvo
Copy link

@matthewtckr
Copy link

Is this unblocked by #774?

@ceciliasharp
Copy link
Author

The go api now includes the IsDisabled propery on the struct

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