From d133aeed83b63252c70f4ecb546108045eb79c5b Mon Sep 17 00:00:00 2001 From: xuzhang3 Date: Fri, 13 Aug 2021 16:58:01 +0800 Subject: [PATCH 1/4] v0.1.7 CHANGELOG.md --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07d5f394c..950d09b29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.1.7(Unreleased) +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 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) + ## 0.1.6 FEATURES: * **New Resource** `serviceendpoint_generic` [#402](https://github.com/microsoft/terraform-provider-azuredevops/issues/402) From 08ae693107e2da1e1b45772f4199110948cdd58d Mon Sep 17 00:00:00 2001 From: xuzhang3 Date: Mon, 23 Aug 2021 14:35:46 +0800 Subject: [PATCH 2/4] change log v0.1.7 --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 950d09b29..f1cd21975 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,9 +3,18 @@ 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) From fbd3da83947e299f12ffa4aa4d0b0bc90784eca7 Mon Sep 17 00:00:00 2001 From: xuzhang3 Date: Wed, 25 Aug 2021 16:45:29 +0800 Subject: [PATCH 3/4] change log v0.1.7 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1cd21975..e96279bc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.1.7(Unreleased) +## 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) From f219e42ab6749d4eedc67f073e5a9105811c9cd5 Mon Sep 17 00:00:00 2001 From: xuzhang3 Date: Wed, 25 Aug 2021 16:50:37 +0800 Subject: [PATCH 4/4] repo policy document update --- ...epository_policy_author_email_pattern.html.markdown | 6 ------ .../repository_policy_file_path_pattern.html.markdown | 10 +--------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/website/docs/r/repository_policy_author_email_pattern.html.markdown b/website/docs/r/repository_policy_author_email_pattern.html.markdown index ae63bdab8..61411bc32 100644 --- a/website/docs/r/repository_policy_author_email_pattern.html.markdown +++ b/website/docs/r/repository_policy_author_email_pattern.html.markdown @@ -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"] @@ -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"] @@ -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. diff --git a/website/docs/r/repository_policy_file_path_pattern.html.markdown b/website/docs/r/repository_policy_file_path_pattern.html.markdown index 656a5b391..aa02bd1b2 100644 --- a/website/docs/r/repository_policy_file_path_pattern.html.markdown +++ b/website/docs/r/repository_policy_file_path_pattern.html.markdown @@ -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"] } ``` @@ -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.