microsoft / terraform-provider-azuredevops

Terraform Azure DevOps provider
https://www.terraform.io/docs/providers/azuredevops/
MIT License
387 stars 280 forks source link

Configure Git Repository Settings #748

Open toomeydanielj opened 1 year ago

toomeydanielj commented 1 year ago

Community Note

Description

The provider should include a resource that allows you to configure Repository Settings. We need the ability to either default Repository Settings for newly created Repositories or the ability to configure individual Repository Settings.

New or Affected Resource(s)

new resource "azuredevops_git_repository_settings"

Potential Terraform Configuration

resource "azuredevops_git_repository_settings" "repository_settings" {
  project_id    = azuredevops_project.project.id
  repository_id = azuredevops_git_repository.repository.id # OR null to apply to all repositories in the project

  settings {
    Forks                           = "enabled"
    CommitMentionLinking            = "enabled"
    CommitMentionWorkItemResolution = "enabled"
    WorkItemTransitionPreferences   = "enabled"
    PermissionsMangement            = "enabled"
    StrictVoteMode                  = "disabled"
    InherePRCreation                = "enabled"
  }

}

Screenshot from Azure DevOps

repository_settings

hdermois commented 10 months ago

I cannot find these settings in the azure devops api. Can could someone help me with this. I would really like this functionality, but i could also implement it with the rest api for the time being.

joewragg commented 3 months ago

+1