You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: update webhooks variable type and usage (#22)
- Changed the type of `webhooks` variable from `list` to `map` in `variables.tf` and `README.md`.
- Updated the default value of `webhooks` variable from `[]` to `{}`.
- Modified the `for_each` expression in `github_repository_webhook` resource in `main.tf` to iterate over the map of webhooks.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ No modules.
72
72
| <aname="input_topics"></a> [topics](#input\_topics)| The topics of the repository |`list(string)`|`[]`| no |
73
73
| <aname="input_visibility"></a> [visibility](#input\_visibility)| The visibility of the repository |`string`|`"private"`| no |
74
74
| <aname="input_vulnerability_alerts"></a> [vulnerability\_alerts](#input\_vulnerability\_alerts)| Whether the repository has vulnerability alerts enabled |`bool`|`false`| no |
75
-
| <aname="input_webhooks"></a> [webhooks](#input\_webhooks)|The URLs of the webhooks| <pre>list(object({<br> active = bool<br> events = list(string)<br> content_type = string<br> url = string<br> }))</pre> |`[]`| no |
75
+
| <aname="input_webhooks"></a> [webhooks](#input\_webhooks)|Webhooks to configure for the repository| <pre>map(object({<br> active = bool<br> events = list(string)<br> content_type = string<br> url = string<br> }))</pre> |`{}`| no |
0 commit comments