Skip to content

Commit 05a7f52

Browse files
doc: Update github_repository_webhook doc
1 parent 7db868a commit 05a7f52

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

docs/resources/repository_webhook.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ This resource allows you to create and manage webhooks for repositories within y
1313
## Example Usage
1414

1515
```terraform
16-
resource "github_repository" "repo" {
17-
name = "foo"
16+
resource "github_repository" "example_repo" {
17+
name = "example-repo"
1818
description = "Terraform acceptance tests"
1919
homepage_url = "http://example.com/"
2020
2121
visibility = "public"
2222
}
2323
24-
resource "github_repository_webhook" "foo" {
25-
repository = github_repository.repo.name
24+
resource "github_repository_webhook" "example_webhook" {
25+
repository = github_repository.example_repo.name
2626
2727
configuration {
2828
url = "https://google.de/"
@@ -66,12 +66,13 @@ The following additional attributes are exported:
6666

6767
## Import
6868

69-
Repository webhooks can be imported using the `name` of the repository, combined with the `id` of the webhook, separated by a `/` character. 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"`.
69+
Repository webhooks can be imported using the `name` of the repository, combined with the `id` of the webhook, separated by a `/` character.
70+
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.
7071

7172
Importing uses the name of the repository, as well as the ID of the webhook, e.g.
7273

73-
```shell
74-
terraform import github_repository_webhook.terraform terraform/11235813
74+
```sh
75+
terraform import github_repository_webhook.example_webhook example-repo/14711452
7576
```
7677

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

0 commit comments

Comments
 (0)