From 3510ba0dae7ab32f78f1c29bf8375545b55a3997 Mon Sep 17 00:00:00 2001 From: Steven Welch Date: Wed, 2 Sep 2026 10:14:36 -0600 Subject: [PATCH] refactor: drop self-evident topics comments The map name and the active-repository conditional say what the comments spelled out; remove both comment blocks. --- gh-repositories.tf | 7 +------ main.tf | 8 -------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/gh-repositories.tf b/gh-repositories.tf index ed1cec8..fe74749 100644 --- a/gh-repositories.tf +++ b/gh-repositories.tf @@ -13,12 +13,7 @@ resource "github_repository" "repositories" { delete_branch_on_merge = true squash_merge_commit_title = "PR_TITLE" squash_merge_commit_message = "PR_BODY" - # Topics are declared in main.tf (local.topics_by_repository) and managed - # for active repositories only (local.active_github_repositories); - # archived repositories are skipped and their existing GitHub topics stay - # unmanaged. A missing entry for an active repository fails the plan; use - # an explicit empty list for a repository that should carry no topics. - topics = contains(local.active_github_repositories, each.key) ? local.topics_by_repository[each.key] : null + topics = contains(local.active_github_repositories, each.key) ? local.topics_by_repository[each.key] : null lifecycle { ignore_changes = [ description, diff --git a/main.tf b/main.tf index c54e5c6..89cdab8 100644 --- a/main.tf +++ b/main.tf @@ -31,14 +31,6 @@ locals { private_github_repositories = toset([ "agent-knowledge" ]) - # Topics are managed for active repositories only - # (local.active_github_repositories). Archived repositories are skipped - # entirely (see gh-repositories.tf) and their existing GitHub topics stay - # unmanaged, so they carry no entry here. The lookup for active - # repositories is direct, so adding an active repository without a topics - # entry fails the plan; a repository intentionally without topics declares - # an explicit empty list. Values audited against live GitHub repository - # topics on 2026-09-02. topics_by_repository = { ".github" = ["community-health", "github", "org-profile"] "agent-knowledge" = ["agents", "documentation", "knowledge-base", "opencode"]