Update github provider

This commit is contained in:
Seth Vargo 2017-04-10 12:25:29 -04:00
parent 9bd2b38f2c
commit d37bf808df
No known key found for this signature in database
GPG Key ID: C921994F9C27E0FF
9 changed files with 25 additions and 21 deletions

View File

@ -17,7 +17,7 @@ Use the navigation to the left to read about the available resources.
## Example Usage ## Example Usage
``` ```hcl
# Configure the GitHub Provider # Configure the GitHub Provider
provider "github" { provider "github" {
token = "${var.github_token}" token = "${var.github_token}"

View File

@ -6,7 +6,7 @@ description: |-
Provides a GitHub membership resource. Provides a GitHub membership resource.
--- ---
# github\_membership # github_membership
Provides a GitHub membership resource. Provides a GitHub membership resource.
@ -16,7 +16,7 @@ destroyed, either the invitation will be cancelled or the user will be removed.
## Example Usage ## Example Usage
``` ```hcl
# Add a user to the organization # Add a user to the organization
resource "github_membership" "membership_for_some_user" { resource "github_membership" "membership_for_some_user" {
username = "SomeUser" username = "SomeUser"

View File

@ -6,20 +6,22 @@ description: |-
Creates and manages webhooks for Github organizations 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. This resource allows you to create and manage webhooks for Github organization.
## Example Usage ## Example Usage
``` ```hcl
resource "github_organization_webhook" "foo" { resource "github_organization_webhook" "foo" {
name = "web" name = "web"
configuration { configuration {
url = "https://google.de/" url = "https://google.de/"
content_type = "form" content_type = "form"
insecure_ssl = false insecure_ssl = false
} }
active = false active = false
events = ["issues"] events = ["issues"]

View File

@ -6,7 +6,7 @@ description: |-
Creates and manages repositories within Github organizations Creates and manages repositories within Github organizations
--- ---
# github\_repository # github_repository
This resource allows you to create and manage repositories within your This resource allows you to create and manage repositories within your
Github organization. Github organization.
@ -16,7 +16,7 @@ outside of organizations.
## Example Usage ## Example Usage
``` ```hcl
resource "github_repository" "example" { resource "github_repository" "example" {
name = "example" name = "example"
description = "My awesome codebase" description = "My awesome codebase"

View File

@ -6,7 +6,7 @@ description: |-
Provides a GitHub repository collaborator resource. Provides a GitHub repository collaborator resource.
--- ---
# github\_repository_collaborator # github_repository_collaborator
Provides a GitHub repository collaborator resource. Provides a GitHub repository collaborator resource.
@ -26,7 +26,7 @@ Further documentation on GitHub collaborators:
## Example Usage ## Example Usage
``` ```hcl
# Add a collaborator to a repository # Add a collaborator to a repository
resource "github_repository_collaborator" "a_repo_collaborator" { resource "github_repository_collaborator" "a_repo_collaborator" {
repository = "our-cool-repo" repository = "our-cool-repo"

View File

@ -6,7 +6,7 @@ description: |-
Creates and manages repository webhooks within Github organizations 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 This resource allows you to create and manage webhooks for repositories within your
Github organization. Github organization.
@ -16,7 +16,7 @@ outside of organizations.
## Example Usage ## Example Usage
``` ```hcl
resource "github_repository" "repo" { resource "github_repository" "repo" {
name = "foo" name = "foo"
description = "Terraform acceptance tests" description = "Terraform acceptance tests"
@ -29,11 +29,13 @@ resource "github_repository_webhook" "foo" {
repository = "${github_repository.repo.name}" repository = "${github_repository.repo.name}"
name = "web" name = "web"
configuration { configuration {
url = "https://google.de/" url = "https://google.de/"
content_type = "form" content_type = "form"
insecure_ssl = false insecure_ssl = false
} }
active = false active = false
events = ["issues"] events = ["issues"]

View File

@ -6,7 +6,7 @@ description: |-
Provides a GitHub team resource. Provides a GitHub team resource.
--- ---
# github\_team # github_team
Provides a GitHub team resource. Provides a GitHub team resource.
@ -15,7 +15,7 @@ a new team will be created. When destroyed, that team will be removed.
## Example Usage ## Example Usage
``` ```hcl
# Add a team to the organization # Add a team to the organization
resource "github_team" "some_team" { resource "github_team" "some_team" {
name = "some-team" name = "some-team"

View File

@ -6,7 +6,7 @@ description: |-
Provides a GitHub team membership resource. Provides a GitHub team membership resource.
--- ---
# github\_team_membership # github_team_membership
Provides a GitHub team membership resource. Provides a GitHub team membership resource.
@ -17,7 +17,7 @@ destroyed, the user will be removed from the team.
## Example Usage ## Example Usage
``` ```hcl
# Add a user to the organization # Add a user to the organization
resource "github_membership" "membership_for_some_user" { resource "github_membership" "membership_for_some_user" {
username = "SomeUser" username = "SomeUser"

View File

@ -6,7 +6,7 @@ description: |-
Manages the associations between teams and repositories. Manages the associations between teams and repositories.
--- ---
# github\_team_repository # github_team_repository
This resource manages relationships between teams and repositories This resource manages relationships between teams and repositories
in your Github organization. in your Github organization.
@ -20,7 +20,7 @@ to do that, see [`github_repository`](repository.html).
## Example Usage ## Example Usage
``` ```hcl
# Add a repository to the team # Add a repository to the team
resource "github_team" "some_team" { resource "github_team" "some_team" {
name = "SomeTeam" name = "SomeTeam"