diff --git a/README.md b/README.md index 58fe43b..21b4c79 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ See [variables.tf] and [examples/] for details and use-cases. | [archive\_on\_destroy](#input\_archive\_on\_destroy) | (Optional) Set to `false` to not archive the repository instead of deleting on destroy. | `string` | `true` | no | | [archived](#input\_archived) | (Optional) Specifies if the repository should be archived. (Default: false) | `bool` | `false` | no | | [auto\_init](#input\_auto\_init) | (Optional) Wether or not to produce an initial commit in the repository. (Default: true) | `bool` | `null` | no | -| [autolink\_references](#input\_autolink\_references) | (Optional) Configuring autolink references. For details please check: https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_autolink_reference |
list(object({
key_prefix = string
target_url_template = string
})) | `[]` | no |
+| [autolink\_references](#input\_autolink\_references) | (Optional) Configuring autolink references. For details please check: https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_autolink_reference | list(object({
key_prefix = string
target_url_template = string
is_alphanumeric = optional(bool)
})) | `[]` | no |
| [branch\_protections\_v3](#input\_branch\_protections\_v3) | (Optional) A list of branch protections to apply to the repository. Default is [] unless branch\_protections is set. | `any` | `[]` | no |
| [branch\_protections\_v4](#input\_branch\_protections\_v4) | (Optional) A list of v4 branch protections to apply to the repository. Default is []. | `any` | `[]` | no |
| [branches](#input\_branches) | (Optional) A list of branches to be created in this repository. | `any` | `[]` | no |
diff --git a/main.tf b/main.tf
index ceb3dbf..dacb337 100644
--- a/main.tf
+++ b/main.tf
@@ -613,6 +613,7 @@ resource "github_repository_autolink_reference" "repository_autolink_reference"
repository = github_repository.repository.name
key_prefix = each.value.key_prefix
target_url_template = each.value.target_url_template
+ is_alphanumeric = each.value.is_alphanumeric
}
# ---------------------------------------------------------------------------------------------------------------------
diff --git a/variables.tf b/variables.tf
index e234490..fca1d44 100644
--- a/variables.tf
+++ b/variables.tf
@@ -532,6 +532,7 @@ variable "autolink_references" {
type = list(object({
key_prefix = string
target_url_template = string
+ is_alphanumeric = optional(bool)
}))
# Example:
@@ -539,6 +540,7 @@ variable "autolink_references" {
# {
# key_prefix = "TICKET-"
# target_url_template = "https://hello.there/TICKET?query=