We are trying to enable the following commented out options:
resource "azuredevops_branch_policy_min_reviewers" "branch_policy" {
project_id = var.project_id
enabled = true
blocking = true
settings {
reviewer_count = 2
submitter_can_vote = false
# on_push_reset_approved_votes = true
# allow_completion_with_rejects_or_waits = true
# on_last_iteration_require_vote = true
# last_pusher_cannot_approve = false
scope {
repository_id = each.value.id
repository_ref = each.value.default_branch
match_type = "Exact"
}
# scope {
# repository_id = each.value.id
# repository_ref = "refs/heads/main"
# match_type = "Exact"
# }
}
}
based on the code at:
https://github.com/microsoft/terraform-provider-azuredevops/blob/bacdd41906d38539d941b8202f54bb920b39fae8/azuredevops/internal/service/policy/resource_branchpolicy_min_reviewers.go#L16-L22
but on apply, results in the following error:
Error: Unsupported argument
on git_repository.tf line 31, in resource "azuredevops_branch_policy_min_reviewers" "branch_policy":
31: on_push_reset_approved_votes = true
An argument named "on_push_reset_approved_votes" is not expected here.
I see this is in master but the release is older.
is the team planning a new release?
@FernandoMiguel azuredevops_branch_policy_min_reviewers enhancement will release in v0.1.2.
Hi @FernandoMiguel I'm going close this issue, v0.1.2 has been released https://registry.terraform.io/providers/microsoft/azuredevops/latest