Update branch_policy_status_check.html.markdown
@@ -54,6 +54,12 @@ resource "azuredevops_branch_policy_status_check" "example" {
repository_ref = azuredevops_git_repository.example.default_branch
match_type = "Exact"
}
+
+ scope {
+ repository_id = azuredevops_git_repository.example.id
+ match_type = "DefaultBranch"
+ repository_ref = null
+ }
}
}
```
@@ -83,13 +89,9 @@ The following arguments are supported:
`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)
- , `Prefix` or `DefaultBranch`.
+ - `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
