{"id":13702565,"url":"https://github.com/KOBA789/gh-sql","last_synced_at":"2025-05-05T04:31:11.309Z","repository":{"id":42435619,"uuid":"440284256","full_name":"KOBA789/gh-sql","owner":"KOBA789","description":"Query GitHub Projects with SQL","archived":false,"fork":false,"pushed_at":"2023-06-19T05:59:30.000Z","size":485,"stargazers_count":128,"open_issues_count":3,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-13T09:41:15.026Z","etag":null,"topics":["cli","gh-extension","github","github-projects","sql"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KOBA789.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-12-20T19:28:00.000Z","updated_at":"2024-09-13T11:55:52.000Z","dependencies_parsed_at":"2024-01-14T19:28:37.796Z","dependency_job_id":null,"html_url":"https://github.com/KOBA789/gh-sql","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KOBA789%2Fgh-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KOBA789%2Fgh-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KOBA789%2Fgh-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KOBA789%2Fgh-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KOBA789","download_url":"https://codeload.github.com/KOBA789/gh-sql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252439560,"owners_count":21748028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","gh-extension","github","github-projects","sql"],"created_at":"2024-08-02T21:00:38.026Z","updated_at":"2025-05-05T04:31:10.934Z","avatar_url":"https://github.com/KOBA789.png","language":"Rust","readme":"# `gh-sql`: Query GitHub Projects (beta) with SQL\n\n![](./docs/demo.png)\n\n## Installation\n\n```\ngh extension install KOBA789/gh-sql\n```\n\n## Features\n\n- `SELECT` items\n- `DELETE` items\n- `UPDATE` item fields\n  - You can not modify `Title`, `Assignees`, `Labels`, `Milestone`, or `Repository`\n\n## Usage\n\n```\nUSAGE:\n    gh-sql [OPTIONS] \u003cOWNER\u003e \u003cPROJECT_NUMBER\u003e\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -e, --execute \u003cexecute\u003e    SQL statement to execute\n    -o, --output \u003coutput\u003e      \"table\", \"json\" or these initial [default: table]\n\nARGS:\n    \u003cOWNER\u003e\n    \u003cPROJECT_NUMBER\u003e\n```\n\n### eg. JSON output in non-interactive execution\n\n- `-oj`: output as json\n- `-e`: non-interactive mode\n\n```bash\ngh sql YOUR_NAME YOUR_PROJECT_NUMBER -oj -e 'select * from items;'\n```\n\n### eg. Make task list in markdown\n\nOf course, you can also pipe it to `jq`.\n\n```bash\ngh sql YOUR_NAME YOUR_PROJECT_NUMBER -oj -e 'select * from items where Repository is not null;' | \\\n    jq -r '\"- \" + .Repository + \"#\" + (.Issue | tostring)'\n```\n","funding_links":[],"categories":["🧩 Categories","Github","cli","Rust"],"sub_categories":["Issue / PR Management"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKOBA789%2Fgh-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKOBA789%2Fgh-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKOBA789%2Fgh-sql/lists"}