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

module "github_repositories" {
  source                     = "git@github.com:theorchard/terraform-github.git//?ref=5.0.0"
  application_family         = "collaborators"
  repository_name            = "lambda-collaborator-report"
  description                = "Managed by Terraform."
  default_code_owner         = "collaborators"
  allow_merge_commit         = true
  delete_branch_on_merge     = true
  github_code_owner_reviews  = false
  branch_protection_patterns = ["master"]
  github_pull_teams          = []
  github_triage_teams        = ["orcharddevs-ro"]
  github_push_teams          = ["mergers"]
}
