Skip to content

Commit 54dfa18

Browse files
joppa27osterman
authored andcommitted
fix: default value for webhook_content_type (#5)
* fix: default value for webhook_content_type * chore: run make to rebuild the readme
1 parent 97d4b46 commit 54dfa18

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module "github_webhooks" {
5454
github_token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
5555
github_repositories = "geodesic"
5656
webhook_url = "https://atlantis.prod.company.com/"
57-
content_type = "application/json"
57+
content_type = "json"
5858
events = ["issues"]
5959
}
6060
```
@@ -74,7 +74,6 @@ Available targets:
7474
lint Lint terraform code
7575
7676
```
77-
7877
## Inputs
7978

8079
| Name | Description | Type | Default | Required |
@@ -86,7 +85,7 @@ Available targets:
8685
| github_repositories | List of repository names which should be associated with the webhook | list | `<list>` | no |
8786
| github_token | GitHub token used for API access | string | - | yes |
8887
| name | The type of webhook | string | `web` | no |
89-
| webhook_content_type | Webhook Content Type (E.g. application/json) | string | `application/json` | no |
88+
| webhook_content_type | Webhook Content Type (E.g. json) | string | `json` | no |
9089
| webhook_insecure_ssl | Webhook Insecure SSL (E.g. trust self-signed certificates) | string | `false` | no |
9190
| webhook_secret | Webhook secret | string | `` | no |
9291
| webhook_url | Webhook URL | string | - | yes |

docs/terraform.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
## Inputs
32

43
| Name | Description | Type | Default | Required |
@@ -10,7 +9,7 @@
109
| github_repositories | List of repository names which should be associated with the webhook | list | `<list>` | no |
1110
| github_token | GitHub token used for API access | string | - | yes |
1211
| name | The type of webhook | string | `web` | no |
13-
| webhook_content_type | Webhook Content Type (E.g. application/json) | string | `application/json` | no |
12+
| webhook_content_type | Webhook Content Type (E.g. json) | string | `json` | no |
1413
| webhook_insecure_ssl | Webhook Insecure SSL (E.g. trust self-signed certificates) | string | `false` | no |
1514
| webhook_secret | Webhook secret | string | `` | no |
1615
| webhook_url | Webhook URL | string | - | yes |

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ variable "webhook_url" {
3030
}
3131

3232
variable "webhook_content_type" {
33-
description = "Webhook Content Type (E.g. application/json)"
34-
default = "application/json"
33+
description = "Webhook Content Type (E.g. json)"
34+
default = "json"
3535
}
3636

3737
variable "webhook_secret" {

0 commit comments

Comments
 (0)