{"id":50744163,"url":"https://github.com/mohabdo21/gh-search","last_synced_at":"2026-06-10T19:01:25.885Z","repository":{"id":357343018,"uuid":"1236504298","full_name":"Mohabdo21/gh-search","owner":"Mohabdo21","description":"Searches GitHub issues and discussions","archived":false,"fork":false,"pushed_at":"2026-05-12T11:19:47.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-12T12:14:15.146Z","etag":null,"topics":["discussions","gh","github","issues","json","query","search"],"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/Mohabdo21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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-05-12T10:01:28.000Z","updated_at":"2026-05-12T11:19:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Mohabdo21/gh-search","commit_stats":null,"previous_names":["mohabdo21/gh-search"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Mohabdo21/gh-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fgh-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fgh-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fgh-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fgh-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mohabdo21","download_url":"https://codeload.github.com/Mohabdo21/gh-search/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohabdo21%2Fgh-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34165482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["discussions","gh","github","issues","json","query","search"],"created_at":"2026-06-10T19:01:25.059Z","updated_at":"2026-06-10T19:01:25.874Z","avatar_url":"https://github.com/Mohabdo21.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-search\n\n`gh-search` searches GitHub issues and discussions in one repository.\n\nInput is a repository URL and a query string. Output is either a table for humans or JSON for scripts.\n\nIt uses the same auth setup as `gh`. If `gh auth login` works, this works. `GH_TOKEN` works too.\n\n## Install\n\n```bash\ngo install ./cmd/gh-search\n```\n\n## Usage\n\n```bash\ngh-search \u003crepo-url\u003e (--query|-q) \u003ckeywords\u003e [(--state|-s) open|closed|all] [(--type|-t) issue|discussion|all] [--limit N] [--sort relevance|created|created-asc|created-desc|updated|updated-asc|updated-desc] [--json] [--plain-links]\n```\n\n## Flags\n\n- `--query`, `-q`: required.\n- `--state`, `-s`: filter by state. Default: `all`.\n- `--type`, `-t`: search `issue`, `discussion`, or `all`. Default: `all`.\n- `--limit`: max results per selected result type. `0` means no client-side cap.\n- `--sort`: `relevance`, `created`, `created-asc`, `created-desc`, `updated`, `updated-asc`, or `updated-desc`.\n- `--json`: print JSON.\n- `--plain-links`: disable terminal hyperlinks and print a plain `Direct Links` section.\n\n## Examples\n\n```bash\ngh-search https://github.com/moby/moby --query \"container exit code\" --state all\ngh-search https://github.com/kubernetes/kubernetes -q \"pod pending\" -t discussion\ngh-search https://github.com/kubernetes/kubernetes --query \"pod pending\" --type discussion\ngh-search https://github.com/cli/cli --query \"extension\" --type issue --limit 5 --sort created-asc\ngh-search https://github.com/cli/go-gh --query \"graphql client\" --json --type issue --limit 3\ngh-search https://github.com/hyprwm/Hyprland --query \"GPU Reset\" --state open --limit 4 --plain-links\n```\n\n## Notes\n\n- Issues and discussions are queried separately.\n- `--limit` applies per selected result type.\n- Pagination is automatic.\n- Short flags exist only for the common filters: `-q`, `-s`, and `-t`.\n- Table output uses terminal hyperlinks when possible.\n- Piped output falls back to plain URLs.\n- GitHub search limits still apply.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohabdo21%2Fgh-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohabdo21%2Fgh-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohabdo21%2Fgh-search/lists"}