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

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

  repository_name                  = "rti-mobile-automation"
  branch_protection_enabled        = true
  branch_protection_enforce_admins = true
  archived_repository              = true
  description                      = "The repository for mobile ui testing via Appium and mobile API testing. Managed by Terraform."
  has_downloads                    = false
  homepage_url                     = ""

  github_pull_teams = ["rti-team"]
  github_push_teams = ["mergers", "rti-be-team", "rti-fe-team"]

  github_code_owner_reviews = true
  application_family        = "insights"
  default_code_owner        = "insights"
}
