@@ -31,6 +31,7 @@ _Security related notice: Versions 4.7.0, 4.8.0, 4.9.0 and 4.9.1 of the Terrafor
3131 - [ Projects Configuration] ( #projects-configuration )
3232 - [ Webhooks Configuration] ( #webhooks-configuration )
3333 - [ Secrets Configuration] ( #secrets-configuration )
34+ - [ Autolink References Configuration] ( #autolink-references-configuration )
3435 - [ Module Configuration] ( #module-configuration )
3536- [ Module Outputs] ( #module-outputs )
3637- [ External Documentation] ( #external-documentation )
@@ -82,7 +83,7 @@ Most basic usage creating a new private github repository.
8283``` hcl
8384module "repository" {
8485 source = "mineiros-io/repository/github"
85- version = "~> 0.11 .0"
86+ version = "~> 0.13 .0"
8687
8788 name = "terraform-github-repository"
8889 license_template = "apache-2.0"
@@ -831,6 +832,24 @@ This is due to some terraform limitation and we will update the module once terr
831832 This requirement matches Github's API, see the upstream documentation for more information.
832833 Default is no approving reviews are required.
833834
835+ #### Autolink References Configuration
836+
837+ - [ ** ` autolink_references ` ** ] ( #var-autolink_references ) : * (Optional ` list(autolink_reference) ` )* <a name =" var-autolink_references " ></a >
838+
839+ This resource allows you to create and manage autolink references for GitHub repository.
840+
841+ Default is ` [] ` .
842+
843+ Each ` autolink_reference ` object in the list accepts the following attributes:
844+
845+ - [ ** ` key_prefix ` ** ] ( #attr-autolink_references-key_prefix ) : * (** Required** ` string ` )* <a name =" attr-autolink_references-key_prefix " ></a >
846+
847+ This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
848+
849+ - [ ** ` target_url_template ` ** ] ( #attr-autolink_references-target_url_template ) : * (** Required** ` string ` )* <a name =" attr-autolink_references-target_url_template " ></a >
850+
851+ The template of the target URL used for the links; must be a valid URL and contain ` <num> ` for the reference number.
852+
834853### Module Configuration
835854
836855- [ ** ` module_depends_on ` ** ] ( #var-module_depends_on ) : * (Optional ` list(any) ` )* <a name =" var-module_depends_on " ></a >
@@ -911,6 +930,7 @@ The following attributes are exported by the module:
911930- https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_collaborator
912931- https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_deploy_key
913932- https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_project
933+ - https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_autolink_reference
914934
915935## Module Versioning
916936
@@ -970,6 +990,7 @@ Copyright © 2020-2022 [Mineiros GmbH][homepage]
970990[ `github_repository_collaborator` ] : https://www.terraform.io/docs/providers/github/r/repository_collaborator.html#attribute-reference
971991[ `github_repository_deploy_key` ] : https://www.terraform.io/docs/providers/github/r/repository_deploy_key.html#attributes-reference
972992[ `github_repository_project` ] : https://www.terraform.io/docs/providers/github/r/repository_project.html#attributes-reference
993+ [ `github_repository_autolink_reference` ] : https://www.terraform.io/docs/providers/github/r/repository_autolink_reference.html#attributes-reference
973994[ homepage ] : https://mineiros.io/?ref=terraform-github-repository
974995[ hello@mineiros.io ] : mailto:hello@mineiros.io
975996[ badge-build ] : https://github.com/mineiros-io/terraform-github-repository/workflows/CI/CD%20Pipeline/badge.svg
0 commit comments