# GitHub repository configuration for the Marketing Intelligence application
# Creates and manages the marketing-intelligence repository
# Includes standard repository settings, permissions, and code ownership

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

terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/github/marketing_intelligence/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

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

  repository_name    = "marketing-intelligence"
  description        = "Marketing Intelligence platform"
  default_code_owner = "devops-squad"
  application_family = "marketing-data-intelligence"
}