Skip to content

Commit 4274008

Browse files
gaima8tobiasehlert
andauthored
feat(tobiasehlert): Add support for is alphanumeric in autolink reference (#16)
Add support for is_alphanumeric in autolink_reference with default being true Implements mineiros-io#156 --------- Co-authored-by: Tobias Lindberg <tobias.ehlert@gmail.com>
1 parent ec995bc commit 4274008

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ See [variables.tf] and [examples/] for details and use-cases.
139139
| <a name="input_archive_on_destroy"></a> [archive\_on\_destroy](#input\_archive\_on\_destroy) | (Optional) Set to `false` to not archive the repository instead of deleting on destroy. | `string` | `true` | no |
140140
| <a name="input_archived"></a> [archived](#input\_archived) | (Optional) Specifies if the repository should be archived. (Default: false) | `bool` | `false` | no |
141141
| <a name="input_auto_init"></a> [auto\_init](#input\_auto\_init) | (Optional) Wether or not to produce an initial commit in the repository. (Default: true) | `bool` | `null` | no |
142-
| <a name="input_autolink_references"></a> [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 | <pre>list(object({<br/> key_prefix = string<br/> target_url_template = string<br/> }))</pre> | `[]` | no |
142+
| <a name="input_autolink_references"></a> [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 | <pre>list(object({<br/> key_prefix = string<br/> target_url_template = string<br/> is_alphanumeric = optional(bool)<br/> }))</pre> | `[]` | no |
143143
| <a name="input_branch_protections_v3"></a> [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 |
144144
| <a name="input_branch_protections_v4"></a> [branch\_protections\_v4](#input\_branch\_protections\_v4) | (Optional) A list of v4 branch protections to apply to the repository. Default is []. | `any` | `[]` | no |
145145
| <a name="input_branches"></a> [branches](#input\_branches) | (Optional) A list of branches to be created in this repository. | `any` | `[]` | no |

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ resource "github_repository_autolink_reference" "repository_autolink_reference"
613613
repository = github_repository.repository.name
614614
key_prefix = each.value.key_prefix
615615
target_url_template = each.value.target_url_template
616+
is_alphanumeric = each.value.is_alphanumeric
616617
}
617618

618619
# ---------------------------------------------------------------------------------------------------------------------

variables.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,13 +532,15 @@ variable "autolink_references" {
532532
type = list(object({
533533
key_prefix = string
534534
target_url_template = string
535+
is_alphanumeric = optional(bool)
535536
}))
536537

537538
# Example:
538539
# autolink_references = [
539540
# {
540541
# key_prefix = "TICKET-"
541542
# target_url_template = "https://hello.there/TICKET?query=<num>"
543+
# is_alphanumeric = true
542544
# }
543545
# ]
544546

0 commit comments

Comments
 (0)