{"id":47890975,"url":"https://github.com/maxbeizer/gh-extension-template","last_synced_at":"2026-04-04T03:05:47.369Z","repository":{"id":340221986,"uuid":"1164266836","full_name":"maxbeizer/gh-extension-template","owner":"maxbeizer","description":"Template repo for Go-based gh CLI extensions","archived":false,"fork":false,"pushed_at":"2026-03-21T11:21:38.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-22T02:33:36.163Z","etag":null,"topics":["gh-extension"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxbeizer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-02-22T21:53:29.000Z","updated_at":"2026-03-21T11:21:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maxbeizer/gh-extension-template","commit_stats":null,"previous_names":["maxbeizer/gh-extension-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/maxbeizer/gh-extension-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fgh-extension-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fgh-extension-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fgh-extension-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fgh-extension-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxbeizer","download_url":"https://codeload.github.com/maxbeizer/gh-extension-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fgh-extension-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31385940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T01:22:39.193Z","status":"online","status_checked_at":"2026-04-04T02:00:07.569Z","response_time":60,"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":["gh-extension"],"created_at":"2026-04-04T03:05:46.636Z","updated_at":"2026-04-04T03:05:47.361Z","avatar_url":"https://github.com/maxbeizer.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-extension-template\n\nA template for building [GitHub CLI](https://cli.github.com/) extensions in Go.\n\n## Using this template\n\n1. Create a new repo from this template:\n   ```bash\n   gh repo create my-org/gh-my-extension --template maxbeizer/gh-extension-template --private --clone\n   cd gh-my-extension\n   ```\n\n2. Update these files:\n   - **`go.mod`** — change the module path to your repo\n   - **`Makefile`** — change `EXTENSION_NAME` to your extension name (without `gh-` prefix)\n   - **`.goreleaser.yml`** — change `project_name` and `binary` to `gh-\u003cyour-name\u003e`\n   - **`main.go`** — change `Use` field and implement your commands\n\n3. Verify everything works:\n   ```bash\n   make ci\n   make install-local\n   gh my-extension\n   ```\n\n## Development\n\n```bash\nmake help          # see all targets\nmake build         # build binary\nmake test          # run tests\nmake ci            # build + vet + test-race\nmake install-local # install extension from checkout\nmake relink-local  # reinstall after changes\n```\n\n## Releasing\n\nTag a version to trigger a release build:\n\n```bash\ngit tag v0.1.0\ngit push origin v0.1.0\n```\n\nThe GitHub Actions workflow uses [goreleaser](https://goreleaser.com/) to build binaries for darwin/linux (amd64/arm64) and create a GitHub release. Once released, users install with:\n\n```bash\ngh extension install my-org/gh-my-extension\n```\n\n## What's included\n\n| File | Purpose |\n|------|---------|\n| `Makefile` | Build, test, lint, install targets |\n| `.goreleaser.yml` | Cross-platform binary releases |\n| `.github/workflows/release.yml` | Automated releases on tag push |\n| `.github/workflows/ci.yml` | CI on push/PR to main |\n| `main.go` | Minimal starter with cobra + signal handling |\n| `.gitignore` | Go/editor/OS ignores |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxbeizer%2Fgh-extension-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxbeizer%2Fgh-extension-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxbeizer%2Fgh-extension-template/lists"}