Skip to content

Commit

Permalink
fix: default value for webhook_content_type (cloudposse#5)
Browse files Browse the repository at this point in the history
* fix: default value for webhook_content_type

* chore: run make to rebuild the readme
  • Loading branch information
joppa27 authored and osterman committed Dec 14, 2018
1 parent 97d4b46 commit 54dfa18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
```
Expand All @@ -74,7 +74,6 @@ Available targets:
lint Lint terraform code
```

## Inputs

| Name | Description | Type | Default | Required |
Expand All @@ -86,7 +85,7 @@ Available targets:
| github_repositories | List of repository names which should be associated with the webhook | list | `<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 |
Expand Down
3 changes: 1 addition & 2 deletions docs/terraform.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

## Inputs

| Name | Description | Type | Default | Required |
Expand All @@ -10,7 +9,7 @@
| github_repositories | List of repository names which should be associated with the webhook | list | `<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 |
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 54dfa18

Please sign in to comment.