babarot

babarot / gh-infra

Public

Declarative GitHub infrastructure management via YAML

17
0
100% credibility
Found Mar 25, 2026 at 17 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Go
AI Summary

gh-infra is a GitHub CLI extension that lets users declaratively manage repository settings, branch protections, rulesets, secrets, variables, and files using simple YAML files with plan/apply workflows.

How It Works

1
🔍 Discover easy repo management

You find a simple tool that lets you describe exactly how your GitHub repositories should look, without clicking around endlessly.

2
📥 Capture your current setup

Pull the settings from one of your existing repositories into a friendly list you can edit.

3
✏️ Design your perfect repositories

Tweak the list to match your ideal setup, like making repos public, adding topics, or turning features on and off.

4
🔮 Preview the changes

Check a clear summary of what will update, so you know exactly what's happening before anything changes.

5
Make the updates

Confirm and apply, watching as your repositories transform to match your vision.

🎉 Repositories are perfect

All your repositories now have consistent, ideal settings across teams—no more manual tweaks!

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 17 to 17 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is gh-infra?

gh-infra is a Go-based gh CLI extension for declarative GitHub infrastructure management via YAML. It lets you define repo settings, branch protection, secrets, variables, rulesets, and even file syncs across multiple repositories—like Terraform for GitHub, but without state files or locking since GitHub is the source of truth. Run `gh infra plan` to preview diffs, `apply` to execute with confirmation, `import` to export existing repos, or `validate` syntax.

Why is it gaining traction?

Unlike the Terraform GitHub provider's HCL overhead or instant-apply tools like Probot Settings, gh-infra uses simple YAML with a plan/apply cycle for safe changes. One YAML file enforces consistent settings or declarative pipelines GitHub-wide, and FileSets sync workflows or configs via push or PR—no extra servers or apps needed, just a token. It's a lightweight gh infra service for quick iteration.

Who should use this?

Solo devs or small teams standardizing repo visibility, topics, and branch rules across projects. DevOps engineers syncing `.github/workflows` or secrets without UI drudgery. Org admins prototyping GH infrastructure management via YAML before scaling to heavier tools.

Verdict

Promising for lightweight declarative GitHub infra, with excellent docs, demos, and test coverage—but at 17 stars and 1.0% credibility score, it's early-stage; expect occasional rough edges. Install via `gh extension install` and try on a test repo if Terraform feels like overkill.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.