diff --git a/website/source/docs/providers/github/index.html.markdown b/website/source/docs/providers/github/index.html.markdown index 79e789566..f8f767e80 100644 --- a/website/source/docs/providers/github/index.html.markdown +++ b/website/source/docs/providers/github/index.html.markdown @@ -17,7 +17,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the GitHub Provider provider "github" { token = "${var.github_token}" diff --git a/website/source/docs/providers/github/r/membership.html.markdown b/website/source/docs/providers/github/r/membership.html.markdown index 874630b0c..a2976c3e4 100644 --- a/website/source/docs/providers/github/r/membership.html.markdown +++ b/website/source/docs/providers/github/r/membership.html.markdown @@ -6,7 +6,7 @@ description: |- Provides a GitHub membership resource. --- -# github\_membership +# github_membership Provides a GitHub membership resource. @@ -16,7 +16,7 @@ destroyed, either the invitation will be cancelled or the user will be removed. ## Example Usage -``` +```hcl # Add a user to the organization resource "github_membership" "membership_for_some_user" { username = "SomeUser" diff --git a/website/source/docs/providers/github/r/organization_webhook.html.markdown b/website/source/docs/providers/github/r/organization_webhook.html.markdown index 1062d1fbc..ccd6e374e 100644 --- a/website/source/docs/providers/github/r/organization_webhook.html.markdown +++ b/website/source/docs/providers/github/r/organization_webhook.html.markdown @@ -6,20 +6,22 @@ description: |- Creates and manages webhooks for Github organizations --- -# github\_organization\_webhook +# github_organization_webhook This resource allows you to create and manage webhooks for Github organization. ## Example Usage -``` +```hcl resource "github_organization_webhook" "foo" { name = "web" + configuration { - url = "https://google.de/" + url = "https://google.de/" content_type = "form" insecure_ssl = false } + active = false events = ["issues"] diff --git a/website/source/docs/providers/github/r/repository.html.markdown b/website/source/docs/providers/github/r/repository.html.markdown index 6ccce9d63..23fbd0416 100644 --- a/website/source/docs/providers/github/r/repository.html.markdown +++ b/website/source/docs/providers/github/r/repository.html.markdown @@ -6,7 +6,7 @@ description: |- Creates and manages repositories within Github organizations --- -# github\_repository +# github_repository This resource allows you to create and manage repositories within your Github organization. @@ -16,7 +16,7 @@ outside of organizations. ## Example Usage -``` +```hcl resource "github_repository" "example" { name = "example" description = "My awesome codebase" diff --git a/website/source/docs/providers/github/r/repository_collaborator.html.markdown b/website/source/docs/providers/github/r/repository_collaborator.html.markdown index 9265a1a9a..4bca5b6e5 100644 --- a/website/source/docs/providers/github/r/repository_collaborator.html.markdown +++ b/website/source/docs/providers/github/r/repository_collaborator.html.markdown @@ -6,7 +6,7 @@ description: |- Provides a GitHub repository collaborator resource. --- -# github\_repository_collaborator +# github_repository_collaborator Provides a GitHub repository collaborator resource. @@ -26,7 +26,7 @@ Further documentation on GitHub collaborators: ## Example Usage -``` +```hcl # Add a collaborator to a repository resource "github_repository_collaborator" "a_repo_collaborator" { repository = "our-cool-repo" diff --git a/website/source/docs/providers/github/r/repository_webhook.html.markdown b/website/source/docs/providers/github/r/repository_webhook.html.markdown index ab57d5f5c..76e84e18c 100644 --- a/website/source/docs/providers/github/r/repository_webhook.html.markdown +++ b/website/source/docs/providers/github/r/repository_webhook.html.markdown @@ -6,7 +6,7 @@ description: |- Creates and manages repository webhooks within Github organizations --- -# github\_repository\_webhook +# github_repository_webhook This resource allows you to create and manage webhooks for repositories within your Github organization. @@ -16,10 +16,10 @@ outside of organizations. ## Example Usage -``` +```hcl resource "github_repository" "repo" { - name = "foo" - description = "Terraform acceptance tests" + name = "foo" + description = "Terraform acceptance tests" homepage_url = "http://example.com/" private = false @@ -29,11 +29,13 @@ resource "github_repository_webhook" "foo" { repository = "${github_repository.repo.name}" name = "web" + configuration { - url = "https://google.de/" + url = "https://google.de/" content_type = "form" insecure_ssl = false } + active = false events = ["issues"] diff --git a/website/source/docs/providers/github/r/team.html.markdown b/website/source/docs/providers/github/r/team.html.markdown index 814bc3594..a4814370c 100644 --- a/website/source/docs/providers/github/r/team.html.markdown +++ b/website/source/docs/providers/github/r/team.html.markdown @@ -6,7 +6,7 @@ description: |- Provides a GitHub team resource. --- -# github\_team +# github_team Provides a GitHub team resource. @@ -15,7 +15,7 @@ a new team will be created. When destroyed, that team will be removed. ## Example Usage -``` +```hcl # Add a team to the organization resource "github_team" "some_team" { name = "some-team" diff --git a/website/source/docs/providers/github/r/team_membership.html.markdown b/website/source/docs/providers/github/r/team_membership.html.markdown index 2b58eb7be..3722c3b8c 100644 --- a/website/source/docs/providers/github/r/team_membership.html.markdown +++ b/website/source/docs/providers/github/r/team_membership.html.markdown @@ -6,7 +6,7 @@ description: |- Provides a GitHub team membership resource. --- -# github\_team_membership +# github_team_membership Provides a GitHub team membership resource. @@ -17,7 +17,7 @@ destroyed, the user will be removed from the team. ## Example Usage -``` +```hcl # Add a user to the organization resource "github_membership" "membership_for_some_user" { username = "SomeUser" diff --git a/website/source/docs/providers/github/r/team_repository.html.markdown b/website/source/docs/providers/github/r/team_repository.html.markdown index a41015624..982aeef2f 100644 --- a/website/source/docs/providers/github/r/team_repository.html.markdown +++ b/website/source/docs/providers/github/r/team_repository.html.markdown @@ -6,7 +6,7 @@ description: |- Manages the associations between teams and repositories. --- -# github\_team_repository +# github_team_repository This resource manages relationships between teams and repositories in your Github organization. @@ -20,7 +20,7 @@ to do that, see [`github_repository`](repository.html). ## Example Usage -``` +```hcl # Add a repository to the team resource "github_team" "some_team" { name = "SomeTeam"