Skip to content

Commit

Permalink
Merge pull request microsoft#440 from xuzhang3/f/changlog_v0.1.7
Browse files Browse the repository at this point in the history
Changlog v0.1.7
  • Loading branch information
xuzhang3 authored Aug 25, 2021
2 parents 73a5975 + f219e42 commit 4c995e7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## 0.1.7
FEATURES:
* **New Resource** `azuredevops_team ` [#121](https://github.com/microsoft/terraform-provider-azuredevops/issues/121)
* **New Resource** `azuredevops_team_members` [#121](https://github.com/microsoft/terraform-provider-azuredevops/issues/121)
* **New Resource** `azuredevops_team_administrators` [#121](https://github.com/microsoft/terraform-provider-azuredevops/issues/121)
* **New Resource** `azuredevops_repository_policy_case_enforcement` [#113](https://github.com/microsoft/terraform-provider-azuredevops/issues/113)
* **New Resource** `azuredevops_repository_policy_reserved_names` [#113](https://github.com/microsoft/terraform-provider-azuredevops/issues/113)
* **New Resource** `azuredevops_repository_policy_max_path_length` [#113](https://github.com/microsoft/terraform-provider-azuredevops/issues/113)
* **New Resource** `azuredevops_repository_policy_max_file_size` [#113](https://github.com/microsoft/terraform-provider-azuredevops/issues/113)
* **New Resource** `azuredevops_repository_policy_check_credentials` [#113](https://github.com/microsoft/terraform-provider-azuredevops/issues/113)
* **New Data Resource** `azuredevops_team` [#121](https://github.com/microsoft/terraform-provider-azuredevops/issues/121)
* **New Data Resource** `azuredevops_teams` [#121](https://github.com/microsoft/terraform-provider-azuredevops/issues/121)

BREAKING CHANGES:
* **Resource** `azuredevops_repository_policy_author_email_pattern` - Remove `settings` and `scope`, policy `scope` can be set by [repository ID](https://github.com/microsoft/terraform-provider-azuredevops/blob/master/website/docs/r/repository_policy_author_email_pattern.html.markdown) [#436](https://github.com/microsoft/terraform-provider-azuredevops/issues/436)
* **Resource** `azuredevops_repository_policy_file_path_pattern` - Remove `settings` and `scope`, policy `scope` can be set by [repository ID](https://github.com/microsoft/terraform-provider-azuredevops/blob/master/website/docs/r/repository_policy_file_path_pattern.html.markdown) [#436](https://github.com/microsoft/terraform-provider-azuredevops/issues/436)

## 0.1.6
FEATURES:
* **New Resource** `serviceendpoint_generic` [#402](https://github.com/microsoft/terraform-provider-azuredevops/issues/402)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ resource "azuredevops_git_repository" "r" {
resource "azuredevops_repository_policy_author_email_pattern" "p" {
project_id = azuredevops_project.p.id
enabled = true
blocking = true
author_email_patterns = ["user1@test.com", "user2@test.com"]
Expand All @@ -41,7 +40,6 @@ resource "azuredevops_repository_policy_author_email_pattern" "p" {
```hcl
resource "azuredevops_repository_policy_author_email_pattern" "p" {
project_id = azuredevops_project.p.id
enabled = true
blocking = true
author_email_patterns = ["user1@test.com", "user2@test.com"]
Expand All @@ -55,10 +53,6 @@ The following arguments are supported:
- `project_id` - (Required) The ID of the project in which the policy will be created.
- `enabled` - (Optional) A flag indicating if the policy should be enabled. Defaults to `true`.
- `blocking` - (Optional) A flag indicating if the policy should be blocking. Defaults to `true`.
- `settings` - (Required) Configuration for the policy. This block must be defined exactly once.

`settings` block supports the following:

- `author_email_patterns` - (Required) Block pushes with a commit author email that does not match the patterns. You can specify exact emails or use wildcards.
Email patterns prefixed with "!" are excluded. Order is important.
- `repository_ids` (Optional) Control whether the policy is enabled for the repository or the project. If `repository_ids` not configured, the policy will be set to the project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,9 @@ resource "azuredevops_repository_policy_file_path_pattern" "p" {
```hcl
resource "azuredevops_repository_policy_file_path_pattern" "p" {
project_id = azuredevops_project.p.id
enabled = true
blocking = true
settings {
filepath_patterns = ["*.go", "/home/test/*.ts"]
}
filepath_patterns = ["*.go", "/home/test/*.ts"]
}
```

Expand All @@ -58,10 +54,6 @@ The following arguments are supported:
- `project_id` - (Required) The ID of the project in which the policy will be created.
- `enabled` - (Optional) A flag indicating if the policy should be enabled. Defaults to `true`.
- `blocking` - (Optional) A flag indicating if the policy should be blocking. Defaults to `true`.
- `settings` - (Required) Configuration for the policy. This block must be defined exactly once.

`settings` block supports the following:

- `filepath_patterns` - (Required) Block pushes from introducing file paths that match the following patterns. Exact paths begin with "/". You can specify exact paths and wildcards. You can also specify multiple paths using ";" as a separator. Paths prefixed with "!" are excluded. Order is important.
- `repository_ids` (Optional) Control whether the policy is enabled for the repository or the project. If `repository_ids` not configured, the policy will be set to the project.

Expand Down

0 comments on commit 4c995e7

Please sign in to comment.