Skip to content

Commit ad1fdb7

Browse files
committed
Update docs
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent e5c84aa commit ad1fdb7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

website/docs/r/repository_autolink_reference.html.markdown

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ This resource allows you to create and manage an autolink reference for a single
1313

1414
```hcl
1515
resource "github_repository" "repo" {
16-
name = "my-repo"
17-
description = "GitHub repo managed by Terraform"
18-
19-
private = false
16+
name = "my-repo"
17+
description = "GitHub repo managed by Terraform"
18+
visibility = "public"
2019
}
2120
2221
resource "github_repository_autolink_reference" "autolink" {
@@ -32,19 +31,20 @@ resource "github_repository_autolink_reference" "autolink" {
3231

3332
The following arguments are supported:
3433

35-
* `repository` - (Required) The repository of the autolink reference.
34+
- `repository` - (Required) The repository of the autolink reference. If the repository is renamed, the autolink reference will be updated in-place rather than recreated.
3635

37-
* `key_prefix` - (Required) This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
36+
- `key_prefix` - (Required) This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
3837

39-
* `target_url_template` - (Required) The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number
38+
- `target_url_template` - (Required) The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number
4039

41-
* `is_alphanumeric` - (Optional) Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. Default is true.
40+
- `is_alphanumeric` - (Optional) Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. Default is true.
4241

4342
## Attributes Reference
4443

4544
The following additional attributes are exported:
4645

47-
* `etag` - An etag representing the autolink reference object.
46+
- `etag` - An etag representing the autolink reference object.
47+
- `repository_id` - The ID of the repository.
4848

4949
## Import
5050

0 commit comments

Comments
 (0)