Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions gh-repositories.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 0 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
Loading