{"id":49020051,"url":"https://github.com/thumbrise/ghset","last_synced_at":"2026-04-19T03:33:42.884Z","repository":{"id":349394769,"uuid":"1202171444","full_name":"thumbrise/ghset","owner":"thumbrise","description":"ghset init my-repo --from your-repo — declarative GitHub repository settings as YAML","archived":false,"fork":false,"pushed_at":"2026-04-14T08:08:24.000Z","size":924,"stargazers_count":1,"open_issues_count":12,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T08:08:49.981Z","etag":null,"topics":["cli","declarative","devops","github","github-api","github-settings","golang","repository-management","yaml"],"latest_commit_sha":null,"homepage":"https://thumbrise.github.io/ghset/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thumbrise.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-05T17:34:25.000Z","updated_at":"2026-04-14T07:59:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thumbrise/ghset","commit_stats":null,"previous_names":["thumbrise/ghset"],"tags_count":2,"template":false,"template_full_name":"thumbrise/resilience","purl":"pkg:github/thumbrise/ghset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thumbrise%2Fghset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thumbrise%2Fghset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thumbrise%2Fghset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thumbrise%2Fghset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thumbrise","download_url":"https://codeload.github.com/thumbrise/ghset/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thumbrise%2Fghset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31993844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","declarative","devops","github","github-api","github-settings","golang","repository-management","yaml"],"created_at":"2026-04-19T03:33:42.277Z","updated_at":"2026-04-19T03:33:42.873Z","avatar_url":"https://github.com/thumbrise.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghset\n\n[![CI](https://github.com/thumbrise/ghset/actions/workflows/ci.yml/badge.svg)](https://github.com/thumbrise/ghset/actions/workflows/ci.yml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/thumbrise/ghset.svg)](https://pkg.go.dev/github.com/thumbrise/ghset)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](/LICENSE)\n\nDeclarative GitHub repository settings. Describe an existing repo into YAML, spin up a new repo from that YAML.\n\n## Why\n\nEvery new GitHub repo starts with the same ritual: click through settings, toggle security options, recreate labels, set up branch protection. Multiply that by 10 repos and it's a whole afternoon. **ghset** turns all of that into one command.\n\n## Quick start\n\nPrerequisites: [gh CLI](https://cli.github.com/) installed and authenticated (`gh auth login`).\n\n### Install\n\n**macOS / Linux**\n```bash\ncurl -sfL https://raw.githubusercontent.com/thumbrise/ghset/main/install.sh | sh\n```\n\n**Go**\n```bash\ngo install github.com/thumbrise/ghset@latest\n```\n\n**Manual** — grab a binary from [Releases](https://github.com/thumbrise/ghset/releases/latest).\n\n### Run\n\n```bash\nghset init my-new-repo --from thumbrise/ghset\n```\n\nThat's it. The new repo gets everything copied:\n- **Settings** — visibility, merge strategies, wiki, issues, projects, discussions\n- **Security** — secret scanning, push protection, vulnerability alerts, automated fixes\n- **Labels** — create custom, skip existing\n- **Rulesets** — branch and tag protection rules\n\n## Commands\n\n```bash\n# Snapshot repo settings → YAML\nghset describe thumbrise/ghset \u003e config.yml\n\n# Create new repo from config\nghset init my-new-repo --from config.yml\n\n# Or directly from another repo — no intermediate file\nghset init my-new-repo --from thumbrise/ghset\n\n# Apply config to an existing repo\nghset apply thumbrise/ghset --from config.yml\n\n# Pipe — describe one, create another\nghset describe thumbrise/ghset | ghset init my-new-repo\n```\n\n| Command | What it does |\n|---------|-------------|\n| `describe` | Snapshot repo → YAML to stdout |\n| `init` | Create new repo + apply settings |\n| `apply` | Apply settings to existing repo |\n\n## How it works\n\nAll GitHub API calls go through `gh` CLI as a subprocess. No tokens in the tool, no OAuth — `gh` handles auth entirely.\n\n## Docs \u0026 rationale\n\n**[thumbrise.github.io/ghset](https://thumbrise.github.io/ghset/)** — full docs, [why not Terraform / Probot / safe-settings](https://thumbrise.github.io/ghset/why), devlog.\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthumbrise%2Fghset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthumbrise%2Fghset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthumbrise%2Fghset/lists"}