@@ -31,6 +31,7 @@ _Security related notice: Versions 4.7.0, 4.8.0, 4.9.0 and 4.9.1 of the Terrafor
31
31
- [ Projects Configuration] ( #projects-configuration )
32
32
- [ Webhooks Configuration] ( #webhooks-configuration )
33
33
- [ Secrets Configuration] ( #secrets-configuration )
34
+ - [ Autolink References Configuration] ( #autolink-references-configuration )
34
35
- [ Module Configuration] ( #module-configuration )
35
36
- [ Module Outputs] ( #module-outputs )
36
37
- [ External Documentation] ( #external-documentation )
@@ -82,7 +83,7 @@ Most basic usage creating a new private github repository.
82
83
``` hcl
83
84
module "repository" {
84
85
source = "mineiros-io/repository/github"
85
- version = "~> 0.11 .0"
86
+ version = "~> 0.13 .0"
86
87
87
88
name = "terraform-github-repository"
88
89
license_template = "apache-2.0"
@@ -831,6 +832,24 @@ This is due to some terraform limitation and we will update the module once terr
831
832
This requirement matches Github's API, see the upstream documentation for more information.
832
833
Default is no approving reviews are required.
833
834
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
+
834
853
### Module Configuration
835
854
836
855
- [ ** ` 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:
911
930
- https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_collaborator
912
931
- https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_deploy_key
913
932
- 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
914
934
915
935
## Module Versioning
916
936
@@ -970,6 +990,7 @@ Copyright © 2020-2022 [Mineiros GmbH][homepage]
970
990
[ `github_repository_collaborator` ] : https://www.terraform.io/docs/providers/github/r/repository_collaborator.html#attribute-reference
971
991
[ `github_repository_deploy_key` ] : https://www.terraform.io/docs/providers/github/r/repository_deploy_key.html#attributes-reference
972
992
[ `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
973
994
[ homepage ] : https://mineiros.io/?ref=terraform-github-repository
974
995
975
996
[ badge-build ] : https://github.com/mineiros-io/terraform-github-repository/workflows/CI/CD%20Pipeline/badge.svg
0 commit comments