From b711a5ee5f26ea896789c071e65f6ee8a44c3a0a Mon Sep 17 00:00:00 2001 From: Tony Pham Date: Wed, 31 Jan 2024 02:08:24 -0800 Subject: [PATCH] support githubenterprise repository type --- .../approvalsandchecks/resource_check_required_template.go | 2 +- website/docs/r/check_required_template.html.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azuredevops/internal/service/approvalsandchecks/resource_check_required_template.go b/azuredevops/internal/service/approvalsandchecks/resource_check_required_template.go index a6e620b12..6ab3f0b37 100644 --- a/azuredevops/internal/service/approvalsandchecks/resource_check_required_template.go +++ b/azuredevops/internal/service/approvalsandchecks/resource_check_required_template.go @@ -8,7 +8,7 @@ import ( "github.com/microsoft/terraform-provider-azuredevops/azuredevops/utils/pipelineschecksextras" ) -var validRepositoryTypes = []string{"azuregit", "github", "bitbucket"} +var validRepositoryTypes = []string{"azuregit", "github", "githubenterprise", "bitbucket"} // ResourceCheckRequiredTemplate schema and implementation for required template check resources func ResourceCheckRequiredTemplate() *schema.Resource { diff --git a/website/docs/r/check_required_template.html.markdown b/website/docs/r/check_required_template.html.markdown index c5160045d..f41c673f2 100644 --- a/website/docs/r/check_required_template.html.markdown +++ b/website/docs/r/check_required_template.html.markdown @@ -86,7 +86,7 @@ The following arguments are supported: A `required_template` block supports the following: -- `repository_type` - (Optional) The type of the repository storing the template. Valid values: `azuregit`, `github`, `bitbucket`. Defaults to `azuregit`. +- `repository_type` - (Optional) The type of the repository storing the template. Valid values: `azuregit`, `github`, `githubenterprise`, `bitbucket`. Defaults to `azuregit`. - `repository_name` - (Required) The name of the repository storing the template. - `repository_ref` - (Required) The branch in which the template will be referenced. - `template_path` - (Required) The path to the template yaml.