diff --git a/README.md b/README.md index a5b00d7..80c9cc9 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ module "github_webhooks" { github_token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" github_repositories = "geodesic" webhook_url = "https://atlantis.prod.company.com/" - content_type = "application/json" + content_type = "json" events = ["issues"] } ``` @@ -74,7 +74,6 @@ Available targets: lint Lint terraform code ``` - ## Inputs | Name | Description | Type | Default | Required | @@ -86,7 +85,7 @@ Available targets: | github_repositories | List of repository names which should be associated with the webhook | list | `` | no | | github_token | GitHub token used for API access | string | - | yes | | name | The type of webhook | string | `web` | no | -| webhook_content_type | Webhook Content Type (E.g. application/json) | string | `application/json` | no | +| webhook_content_type | Webhook Content Type (E.g. json) | string | `json` | no | | webhook_insecure_ssl | Webhook Insecure SSL (E.g. trust self-signed certificates) | string | `false` | no | | webhook_secret | Webhook secret | string | `` | no | | webhook_url | Webhook URL | string | - | yes | diff --git a/docs/terraform.md b/docs/terraform.md index eb1f707..3674568 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -1,4 +1,3 @@ - ## Inputs | Name | Description | Type | Default | Required | @@ -10,7 +9,7 @@ | github_repositories | List of repository names which should be associated with the webhook | list | `` | no | | github_token | GitHub token used for API access | string | - | yes | | name | The type of webhook | string | `web` | no | -| webhook_content_type | Webhook Content Type (E.g. application/json) | string | `application/json` | no | +| webhook_content_type | Webhook Content Type (E.g. json) | string | `json` | no | | webhook_insecure_ssl | Webhook Insecure SSL (E.g. trust self-signed certificates) | string | `false` | no | | webhook_secret | Webhook secret | string | `` | no | | webhook_url | Webhook URL | string | - | yes | diff --git a/variables.tf b/variables.tf index eb80602..5ec07c7 100644 --- a/variables.tf +++ b/variables.tf @@ -30,8 +30,8 @@ variable "webhook_url" { } variable "webhook_content_type" { - description = "Webhook Content Type (E.g. application/json)" - default = "application/json" + description = "Webhook Content Type (E.g. json)" + default = "json" } variable "webhook_secret" {