Skip to content

Commit cc279db

Browse files
authored
refactor: drop self-evident topics comments (#52)
Comment-only follow-up to #51 per owner feedback; no functional change, plan is a no-op.
1 parent eb056ff commit cc279db

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

‎gh-repositories.tf‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ resource "github_repository" "repositories" {
1313
delete_branch_on_merge = true
1414
squash_merge_commit_title = "PR_TITLE"
1515
squash_merge_commit_message = "PR_BODY"
16-
# Topics are declared in main.tf (local.topics_by_repository) and managed
17-
# for active repositories only (local.active_github_repositories);
18-
# archived repositories are skipped and their existing GitHub topics stay
19-
# unmanaged. A missing entry for an active repository fails the plan; use
20-
# an explicit empty list for a repository that should carry no topics.
21-
topics = contains(local.active_github_repositories, each.key) ? local.topics_by_repository[each.key] : null
16+
topics = contains(local.active_github_repositories, each.key) ? local.topics_by_repository[each.key] : null
2217
lifecycle {
2318
ignore_changes = [
2419
description,

‎main.tf‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ locals {
3131
private_github_repositories = toset([
3232
"agent-knowledge"
3333
])
34-
# Topics are managed for active repositories only
35-
# (local.active_github_repositories). Archived repositories are skipped
36-
# entirely (see gh-repositories.tf) and their existing GitHub topics stay
37-
# unmanaged, so they carry no entry here. The lookup for active
38-
# repositories is direct, so adding an active repository without a topics
39-
# entry fails the plan; a repository intentionally without topics declares
40-
# an explicit empty list. Values audited against live GitHub repository
41-
# topics on 2026-09-02.
4234
topics_by_repository = {
4335
".github" = ["community-health", "github", "org-profile"]
4436
"agent-knowledge" = ["agents", "documentation", "knowledge-base", "opencode"]

0 commit comments

Comments
 (0)