From 546662b5e33cdd3a56140b8ffaccad353c2f670c Mon Sep 17 00:00:00 2001 From: Tobias Lindberg Date: Fri, 28 Apr 2023 13:46:06 +0200 Subject: [PATCH 1/2] add support for is_alphanumeric in autolink_reference --- main.tf | 1 + variables.tf | 2 ++ 2 files changed, 3 insertions(+) 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=" + # is_alphanumeric = true # } # ] From 3432edf95964d27e156272becab696a088892c2f Mon Sep 17 00:00:00 2001 From: gaima8 <7595658+gaima8@users.noreply.github.com> Date: Mon, 8 Dec 2025 21:05:35 +0000 Subject: [PATCH 2/2] doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 |