{"id":15422615,"url":"https://github.com/heaths/gh-codeowners","last_synced_at":"2026-02-26T15:39:56.598Z","repository":{"id":152706655,"uuid":"626691089","full_name":"heaths/gh-codeowners","owner":"heaths","description":"GitHub CLI extension to lint CODEOWNERS","archived":false,"fork":false,"pushed_at":"2024-10-28T19:47:00.000Z","size":243,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T18:26:06.704Z","etag":null,"topics":["codeowners","gh-extension"],"latest_commit_sha":null,"homepage":"","language":"Go","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/heaths.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-12T01:19:14.000Z","updated_at":"2025-04-04T13:21:07.000Z","dependencies_parsed_at":"2024-06-21T16:30:01.936Z","dependency_job_id":"f55d4361-492a-4a09-b723-e6530ae44d37","html_url":"https://github.com/heaths/gh-codeowners","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":0.05882352941176472,"last_synced_commit":"2192006d40b901e33789c5117ac0d970bd26d76c"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":"heaths/template-golang","purl":"pkg:github/heaths/gh-codeowners","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fgh-codeowners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fgh-codeowners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fgh-codeowners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fgh-codeowners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heaths","download_url":"https://codeload.github.com/heaths/gh-codeowners/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fgh-codeowners/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29863624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["codeowners","gh-extension"],"created_at":"2024-10-01T17:39:01.966Z","updated_at":"2026-02-26T15:39:56.576Z","avatar_url":"https://github.com/heaths.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CODEOWNERS GitHub CLI extension\n\n[![releases](https://img.shields.io/github/v/release/heaths/gh-codeowners.svg?logo=github)](https://github.com/heaths/gh-codeowners/releases/latest)\n[![ci](https://github.com/heaths/gh-codeowners/actions/workflows/ci.yml/badge.svg?event=push)](https://github.com/heaths/gh-codeowners/actions/workflows/ci.yml)\n\nLint your CODEOWNERS file.\n\n## Install\n\nMake sure you have version 2.0 or [newer] of the [GitHub CLI] installed.\n\n```bash\ngh extension install heaths/gh-codeowners\n```\n\n### Upgrade\n\nThe `gh extension list` command shows if updates are available for extensions. To upgrade, you can use the `gh extension upgrade` command:\n\n```bash\ngh extension upgrade heaths/gh-codeowners\n\n# Or upgrade all extensions:\ngh extension upgrade --all\n```\n\nWhen used in Continuous Integration, starting with `gh` version [2.25.0](https://github.com/cli/cli/releases/tag/v2.25.0), you can install or upgrade the extension with a single command:\n\n```bash\ngh extension install --force heaths/gh-codeowners\n```\n\n## Usage\n\n### Lint\n\nRender a list of errors based on the current branch's CODEOWNERS errors reported by GitHub:\n\n```bash\ngh codeowners lint\n```\n\nYou can also get a sorted list of unknown owners or just return the raw JSON:\n\n```bash\ngh codeowners lint --json\ngh codeowners lint --unknown-owners\n```\n\n### PR\n\nTo see the codeowners for each file in a pull request:\n\n```bash\ngh codeowners pr 123\n```\n\nThe output is rendered as colorful, formatted JSON in terminals but will be compact JSON when piped to another program like `jq`:\n\n```bash\n# Check for added files.\ngh codeowners pr 123 | jq '.[] | select(.changeType==\"ADDED\")'\n```\n\n### View\n\nTo render your CODEOWNERS file with errors reported by GitHub:\n\n```bash\ngh codeowners view\n```\n\n![screenshot](assets/gh-codeowners.png)\n\n## Configuration\n\nThis extension will render colors whenever possible and, in some scenarios like when printing a list of errors,\nmaybe change the format to prefer colors over markers that may work better only for non-colored text.\n\nYou can override these colors on the command line (pass `--help` for details) or permanently with a configuration file\nlocated under your home directory on all platforms: _~/.config/gh-codeowners/config.yml_\n\n```yaml\ncolor:\n  comment: \"#6A9955\"\n  error:   \"#F44747\"\n```\n\n[GitHub CLI]: https://github.com/cli/cli\n[newer]: https://github.com/cli/cli/releases/latest\n\n\n## License\n\nLicensed under the [MIT](LICENSE.txt) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheaths%2Fgh-codeowners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheaths%2Fgh-codeowners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheaths%2Fgh-codeowners/lists"}