Skip to content

Commit

Permalink
feat: add compatibility with scalingo provider v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
josephpage committed May 16, 2023
1 parent d694595 commit 93cce40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions scm_integration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "scalingo_scm_repo_link" "scm_repo_link" {

# Due to a bug in the provider, we need to use the app id instead of the app name
# Link to the issue : https://github.com/Scalingo/terraform-provider-scalingo/issues/153
app = scalingo_app.app.id
app = scalingo_app.app.id

source = each.value.repo_url
auth_integration_uuid = (each.value.integration_uuid != null
Expand All @@ -34,11 +34,11 @@ resource "scalingo_scm_repo_link" "scm_repo_link" {
auto_deploy_enabled = each.value.auto_deploy_enabled
branch = each.value.branch

deploy_review_apps_enabled = var.review_apps.enabled
delete_on_close_enabled = var.review_apps.delete_on_close_enabled
hours_before_delete_on_close = var.review_apps.hours_before_delete_on_close
delete_stale_enabled = var.review_apps.delete_stale_enabled
hours_before_delete_stale = var.review_apps.hours_before_delete_stale
# will be available in v2.1.0 :
# automatic_creation_from_forks_allowed = var.review_apps.automatic_creation_from_forks_allowed
# Configuration for review apps
deploy_review_apps_enabled = var.review_apps.enabled
delete_on_close_enabled = var.review_apps.delete_on_close_enabled
hours_before_delete_on_close = var.review_apps.hours_before_delete_on_close
delete_stale_enabled = var.review_apps.delete_stale_enabled
hours_before_delete_stale = var.review_apps.hours_before_delete_stale
automatic_creation_from_forks_allowed = var.review_apps.automatic_creation_from_forks_allowed
}
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
terraform {
required_version = ">= 1.3.9, < 2.0.0"
required_version = ">= 1.3.0, < 2.0.0"

required_providers {
scalingo = {
source = "scalingo/scalingo"
version = "~> 2.0"
version = "~> 2.1"
}

environment = {
Expand Down

0 comments on commit 93cce40

Please sign in to comment.