Skip to content

Commit

Permalink
fix: var.app_installations should be of type set(string) instead of s…
Browse files Browse the repository at this point in the history
…et(number)
  • Loading branch information
soerenmartius committed May 10, 2022
1 parent 5eaaad1 commit 5a2dad9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- `var.app_installations` should be a of type `set(string)` instead of `set(number)`

## [0.16.1]

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ This is due to some terraform limitation and we will update the module once terr

#### App Installations

- [**`app_installations`**](#var-app_installations): *(Optional `set(number)`)*<a name="var-app_installations"></a>
- [**`app_installations`**](#var-app_installations): *(Optional `set(string)`)*<a name="var-app_installations"></a>

A set of GitHub App IDs to be installed in this repository.

Expand All @@ -820,7 +820,7 @@ This is due to some terraform limitation and we will update the module once terr
Example:

```hcl
app_installations = [25405144, 12556423]
app_installations = ["05405144", "12556423"]
```

### Module Configuration
Expand Down
4 changes: 2 additions & 2 deletions README.tfdoc.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -1057,14 +1057,14 @@ section {
title = "App Installations"

variable "app_installations" {
type = set(number)
type = set(string)
default = {}
description = <<-END
A set of GitHub App IDs to be installed in this repository.
END

readme_example = <<-END
app_installations = [25405144, 12556423]
app_installations = ["05405144", "12556423"]
END
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit-complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ variable "autolink_references" {
}

variable "app_installations" {
type = set(number)
type = set(string)
description = "A list of GitHub App IDs to be installed in this repository."
default = []
}
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ variable "archive_on_destroy" {
}

variable "app_installations" {
type = set(number)
type = set(string)
description = "(Optional) A list of GitHub App IDs to be installed in this repository."
default = []
}
Expand Down

0 comments on commit 5a2dad9

Please sign in to comment.