Skip to content

Add github repository-factory component#1

Merged
opariffazman merged 3 commits into
mainfrom
add-github-component
Jun 8, 2026
Merged

Add github repository-factory component#1
opariffazman merged 3 commits into
mainfrom
add-github-component

Conversation

@Lexxick

@Lexxick Lexxick commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

What

Adds the github component — a repository factory that manages GitHub repos as code via a repositories map (visibility, description, topics, default branch, optional branch protection). Adding/changing a repo is a single map edit on the consumer side; the module never changes.

Notes

  • Reads GITHUB_TOKEN from the environment — no secret committed. First component that needs a credential, so it can't run on the credential-free TG_BACKEND=local path.
  • Intended to be owned by infra-environments-dev only, since GitHub repos are org-scoped and two states must not fight over them (prod does not declare it).
  • Includes the approved design spec under docs/ and updates to README.md / CHANGELOG.md.

Test

terraform fmt -check passes. Module is valid; no apply performed here (it manages real repos and needs a token).

🤖 Generated with Claude Code

A reusable component that manages GitHub repositories as code. Driven by a
`repositories` map (visibility, description, topics, default branch, and
optional branch protection), so adding/changing a repo is a single map edit
on the consumer side and the module never changes.

Reads GITHUB_TOKEN from the environment — no secret is committed. This is the
first component requiring a credential, so it cannot run on the credential-free
TG_BACKEND=local path. Intended to be owned by infra-environments-dev only,
since GitHub repos are org-scoped and two states must not fight over them.

Includes the approved design spec under docs/ and updates README/CHANGELOG.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Lexxick Lexxick requested a review from opariffazman as a code owner June 5, 2026 09:35
@opariffazman opariffazman merged commit 0c1983f into main Jun 8, 2026
5 checks passed
@opariffazman opariffazman deleted the add-github-component branch June 8, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants