Skip to content

Commit

Permalink
fix: error when review apps variable is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
josephpage committed May 16, 2023
1 parent 0291e83 commit 416fc29
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,19 @@ variable "review_apps" {
description = "Configuration of the review apps of the application."
type = object({
enabled = optional(bool, false)

# By default: delete review apps 0 hours after closing the PR
delete_on_close_enabled = optional(bool, true)
delete_stale_enabled = optional(bool, true)
hours_before_delete_on_close = optional(string, "0")
hours_before_delete_stale = optional(string, "72")

# By default: delete review apps after 5 days of inactivity (= no new deployment)
delete_stale_enabled = optional(bool, true)
hours_before_delete_stale = optional(string, "168")

# By default: do not create review apps for PRs from forks
automatic_creation_from_forks_allowed = optional(bool, false)
})
default = null
default = {}
}

variable "additionnal_collaborators" {
Expand Down

0 comments on commit 416fc29

Please sign in to comment.