Skip to content

Commit 5641626

Browse files
doc: Update github_repository_webhook doc
1 parent 11fc028 commit 5641626

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

website/docs/r/repository_webhook.html.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ GitHub organization or personal account.
1515
## Example Usage
1616

1717
```hcl
18-
resource "github_repository" "repo" {
19-
name = "foo"
18+
resource "github_repository" "example_repo" {
19+
name = "example-repo"
2020
description = "Terraform acceptance tests"
2121
homepage_url = "http://example.com/"
2222
2323
visibility = "public"
2424
}
2525
26-
resource "github_repository_webhook" "foo" {
27-
repository = github_repository.repo.name
26+
resource "github_repository_webhook" "example_webhook" {
27+
repository = github_repository.example_repo.name
2828
2929
configuration {
3030
url = "https://google.de/"
@@ -69,12 +69,12 @@ The following additional attributes are exported:
6969
## Import
7070

7171
Repository webhooks can be imported using the `name` of the repository, combined with the `id` of the webhook, separated by a `/` character.
72-
The `id` of the webhook can be found in the URL of the webhook. For example: `"https://github.com/foo-org/foo-repo/settings/hooks/14711452"`.
72+
The `id` of the webhook can be found in the URL of the webhook. For example: `"https://github.com/example-org/example-repo/settings/hooks/14711452"`, where `14711452` is the ID of the webhook.
7373

7474
Importing uses the name of the repository, as well as the ID of the webhook, e.g.
7575

7676
```
77-
$ terraform import github_repository_webhook.terraform terraform/11235813
77+
$ terraform import github_repository_webhook.example_webhook example-repo/14711452
7878
```
7979

8080
If secret is populated in the webhook's configuration, the value will be imported as "********".

0 commit comments

Comments
 (0)