provider "github" {
  organization = var.github_organization
  app_auth {}
}

# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/ows-promo-player/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

module "github_repositories" {
  source = "git@github.com:theorchard/terraform-github.git//?ref=6.1.4"

  repository_name        = "ows-promo-player"
  description            = "Web service for Orchard promo player functionality"
  default_code_owner     = "content-review-management"
  application_family     = var.application_family
  allow_rebase_merge     = true
  delete_branch_on_merge = false
  has_downloads          = true
  github_pull_teams      = ["orcharddevs-ro"]
  github_triage_teams    = []
  require_branches_to_be_up_to_date = false
}
