We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From the REST API supports the DefaultBranch value for matchKind:
DefaultBranch
matchKind
{ "createdBy": { ... }, ... "settings": { "allowDownvotes": false, "blockLastPusherVote": false, "creatorVoteCounts": true, "minimumApproverCount": 2, "requireVoteOnLastIteration": true, "resetOnSourcePush": false, "resetRejectionsOnSourcePush": false, "scope": [ { "matchKind": "DefaultBranch", "refName": null, "repositoryId": null } ] }, "type": { ... }, ... }
It should be possible to set it:
resource "azuredevops_branch_policy_min_reviewers" "p" { ... settings { ... scope { match_type = "DefaultBranch" } } }
But currently, the only values supported are Exact and Prefix.
Exact
Prefix
resource "azuredevops_branch_policy_min_reviewers" "one" { project_id = local.project_id enabled = true blocking = true settings { reviewer_count = 2 scope { match_type = "DefaultBranch" } } }
The values of matchKind are not documented in the API documentation as the settings are defined as a json object.
settings
The text was updated successfully, but these errors were encountered:
feat: add support for match_type value DefaultBranch microsoft#305
6351efa
39dcb95
Hi, I had the same issue today and I landed here. AFAICU there is a PR open for this, but it got stuck somehow. How can I help to make this done?
Sorry, something went wrong.
Hi, I also had the same issue but with the resource 'azuredevops_branch_policy_status_check'. we would requires the same fix for match_type
resource "azuredevops_branch_policy_status_check" "p" { ... settings { ... scope { match_type = "DefaultBranch" } } }
No branches or pull requests
Community Note
Description
From the REST API supports the
DefaultBranch
value formatchKind
:It should be possible to set it:
But currently, the only values supported are
Exact
andPrefix
.New or Affected Resource(s)
Potential Terraform Configuration
References
The values of
matchKind
are not documented in the API documentation as thesettings
are defined as a json object.The text was updated successfully, but these errors were encountered: