Update branch_policy_min_reviewers.html.markdown
@@ -49,6 +49,12 @@ resource "azuredevops_branch_policy_min_reviewers" "example" {
repository_ref = "refs/heads/releases"
match_type = "Prefix"
}
+
+ scope {
+ repository_id = azuredevops_git_repository.example.id
+ repository_ref = null
+ match_type = "DefaultBranch"
+ }
}
}
```
@@ -78,9 +84,9 @@ Only one of `on_push_reset_all_votes` or `on_push_reset_approved_votes` may be s
A `settings` `scope` block supports the following:
-- `repository_id` - (Optional) The repository ID. Needed only if the scope of the policy will be limited to a single repository.
-- `repository_ref` - (Optional) The ref pattern to use for the match. If `match_type` is `Exact`, this should be a qualified ref such as `refs/heads/master`. If `match_type` is `Prefix`, this should be a ref path such as `refs/heads/releases`.
-- `match_type` (Optional) The match type to use when applying the policy. Supported values are `Exact` (default) or `Prefix`.
+- `repository_id` - (Optional) The repository ID. Needed only if the scope of the policy will be limited to a single repository. If `match_type` is `DefaultBranch`, this should not be defined.
+- `repository_ref` - (Optional) The ref pattern to use for the match when `match_type` other than `DefaultBranch`. If `match_type` is `Exact`, this should be a qualified ref such as `refs/heads/master`. If `match_type` is `Prefix`, this should be a ref path such as `refs/heads/releases`.
+- `match_type` (Optional) The match type to use when applying the policy. Supported values are `Exact` (default), `Prefix` or `DefaultBranch`.
## Attributes Reference
