{"id":49146317,"url":"https://github.com/pixincreate/gito","last_synced_at":"2026-04-22T04:03:42.371Z","repository":{"id":342656083,"uuid":"1174668942","full_name":"pixincreate/gito","owner":"pixincreate","description":"A thin, opinionated CLI wrapper around GitHub's API for pull request workflows.","archived":false,"fork":false,"pushed_at":"2026-04-15T07:07:27.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-15T09:13:59.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pixincreate.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-03-06T17:50:26.000Z","updated_at":"2026-04-15T07:07:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pixincreate/gito","commit_stats":null,"previous_names":["pixincreate/gito"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pixincreate/gito","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixincreate%2Fgito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixincreate%2Fgito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixincreate%2Fgito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixincreate%2Fgito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixincreate","download_url":"https://codeload.github.com/pixincreate/gito/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixincreate%2Fgito/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32120402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"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":[],"created_at":"2026-04-22T04:03:37.826Z","updated_at":"2026-04-22T04:03:42.366Z","avatar_url":"https://github.com/pixincreate.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gito\n\nA thin, opinionated CLI wrapper around GitHub's API for pull request workflows.\n\n## Why?\n\n`gh` is great. `curl` is great. Remembering the exact API endpoint, headers, and JSON shape every time you want to fetch review comments... not so great.\n\n`gito` gives you:\n\n- **One interface, two backends.** Has `gh`? Uses `gh`. Doesn't? Falls back to `curl` + `GITHUB_PAT`. You don't think about it.\n- **Human-readable review comments.** No more piping JSON through `jq` gymnastics. Comments come out formatted and ready to read.\n- **Less typing.** `gito pull comments 10` beats `gh api -H \"Accept: application/vnd.github+json\" -H \"X-GitHub-Api-Version: 2022-11-28\" /repos/you/your-repo/pulls/10/comments | jq '.[] | {author: .user.login, body: .body, diff: .diff_hunk}'` any day.\n\n## Install\n\n### `go install`\n\n```bash\ngo install github.com/pixincreate/gito@latest\n```\n\n### Build it yourself\n\n```bash\ngit clone https://github.com/pixincreate/gito.git\ncd gito\nmake build\n# binary lands in dist/gito\n```\n\n## Setup\n\n### Option A: Already have `gh`?\n\n```bash\ngh auth login\n```\n\nDone. `gito` will detect it automatically.\n\n### Option B: Token in env\n\n```bash\nexport GITHUB_PAT=ghp_your_token_here\n```\n\n### What happens at runtime\n\n```\ngh installed and authenticated?\n  yes --\u003e use gh\n  no  --\u003e print yellow warning, try curl\n           GITHUB_PAT set?\n             yes --\u003e use curl\n             no  --\u003e error, tell you what to do\n```\n\nYou can skip auto-detection entirely:\n\n```bash\ngito --backend=gh pr list\ngito --backend=curl pr list\n```\n\n## Commands\n\nEvery command supports `--repo owner/repo`. Skip it and gito reads your git remote.\n\n### Pull requests\n\n```bash\n# Create\ngito pr create \"Fix the thing\" --base main --head fix/thing --label bug --assignee you\n\n# List (default: open, limit 30)\ngito pr list\ngito pr list --state closed --limit 10\n\n# View details\ngito pr view 42\n\n# Merge\ngito pr merge 42\ngito pr merge 42 --method squash --delete-branch\n\n# Close without merging\ngito pr close 42\n\n# Raw diff\ngito pr diff 42\n\n# Who's been asked to review\ngito pr reviewers 42\n```\n\n### Review comments\n\nThis is the main reason gito exists.\n\n```bash\n# Fetch all review comments on a PR\ngito pull comments 10\n\n# Save to file\ngito pull comments 10 --output comments.txt\n```\n\nOutput looks like this:\n\n```\nAuthor: Copilot\nPR Number: 10\nDiff: @@ -33,13 +33,26 @@ pub use convert::{ConvertOptions, Format, convert, convert_with_options};\nReview comment: `is_jsonc_path()` currently treats the entire string as the extension...\nURL: https://github.com/user-name/repo-name/pull/10#discussion_r2896771811\nCreated At: 2026-03-06T16:42:47Z\nAuthor Association: CONTRIBUTOR\n--------------------------------------------------------------------------------\nAuthor: Copilot\nPR Number: 10\nDiff: @@ -0,0 +1,421 @@\nReview comment: The tests validate `is_jsonc_path(\"file\") == false`, but they don't cover...\nURL: https://github.com/user-name/repo-name/pull/10#discussion_r2896771824\nCreated At: 2026-03-06T16:42:47Z\nAuthor Association: CONTRIBUTOR\n--------------------------------------------------------------------------------\n```\n\nNo JSON. No jq. Just text you can actually read.\n\n### Reply to a comment\n\n```bash\ngito pull replies 10 2896771811 --body \"Good catch, fixed.\"\n```\n\n## Repo auto-detection\n\nAll commands figure out `owner/repo` from your git remote when you don't pass `--repo`. If you're in a repo directory, just run the command.\n\n```bash\ncd ~/code/my-project\ngito pr list              # knows it's your-username/my-project\n```\n\n## All the flags\n\n```bash\ngito --help\ngito pr --help\ngito pr create --help\ngito pull --help\ngito pull comments --help\n```\n\n## License\n\n[ CC0-1.0 license ](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixincreate%2Fgito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixincreate%2Fgito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixincreate%2Fgito/lists"}