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
You find a simple tool that lets you describe exactly how your GitHub repositories should look, without clicking around endlessly.
Pull the settings from one of your existing repositories into a friendly list you can edit.
Tweak the list to match your ideal setup, like making repos public, adding topics, or turning features on and off.
Check a clear summary of what will update, so you know exactly what's happening before anything changes.
Confirm and apply, watching as your repositories transform to match your vision.
All your repositories now have consistent, ideal settings across teams—no more manual tweaks!
Star Growth
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 RepurposeSimilar repos coming soon.