diff --git a/repos.tf b/repos.tf index e47a157..49a163e 100644 --- a/repos.tf +++ b/repos.tf @@ -307,3 +307,65 @@ module "github_ops" { } ] } + +module "job_hunter" { + source = "./modules/github-repo" + providers = { + github = github + } + + name = "job-hunter" + description = "AI-powered job hunter" + visibility = "public" + topics = ["ai", "job-search"] + + apps = { + octo_buddy = local.octo_buddy + } + + rulesets = [ + { + name = "Default branch" + target = "branch" + enforcement = "active" + conditions = { + ref_name = { + include = ["~DEFAULT_BRANCH"] + exclude = [] + } + } + bypass_actors = [ + { + actor_id = local.octo_buddy.app_id + actor_type = "Integration" + } + ] + rules = { + deletion = true + non_fast_forward = true + required_status_checks = { + strict_required_status_checks_policy = false + required_check = [ + { context = "lint-commits / validate-commit-messages" }, + { context = "lint-pr / validate-pr-body" }, + { context = "lint-pr / validate-pr-title" }, + ] + } + } + }, + { + name = "Disable tag deletion" + target = "tag" + enforcement = "active" + conditions = { + ref_name = { + include = ["~ALL"] + exclude = [] + } + } + rules = { + deletion = true + } + } + ] +}