{"id":21378725,"url":"https://github.com/sri85/okgit","last_synced_at":"2026-05-06T22:37:07.031Z","repository":{"id":38232923,"uuid":"241093431","full_name":"sri85/okgit","owner":"sri85","description":"CLI tool to interact with Github,Gitlab,Bitbucket","archived":false,"fork":false,"pushed_at":"2023-10-03T00:51:03.000Z","size":58094,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-21T02:26:50.417Z","etag":null,"topics":["bitbucket","bitbucket-cli","cli","developer-tools","git-cli","github","gitlab","gitlab-cli","productivity"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sri85.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}},"created_at":"2020-02-17T11:41:08.000Z","updated_at":"2023-10-16T13:53:38.000Z","dependencies_parsed_at":"2025-03-16T10:25:44.956Z","dependency_job_id":"a92f8cb3-0908-4c7e-897d-0d334fed3395","html_url":"https://github.com/sri85/okgit","commit_stats":null,"previous_names":["sri85/git-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sri85/okgit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sri85%2Fokgit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sri85%2Fokgit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sri85%2Fokgit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sri85%2Fokgit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sri85","download_url":"https://codeload.github.com/sri85/okgit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sri85%2Fokgit/sbom","scorecard":{"id":843828,"data":{"date":"2025-08-11","repo":{"name":"github.com/sri85/okgit","commit":"7f2ebf0a18b9fd0553b95e031a3a0c5aea3297e8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 14 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/sri85/okgit/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/sri85/okgit/nodejs.yml/master?enable=pin","Warn: npmCommand not pinned by hash: scripts/test.sh:2","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"64 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4","Warn: Project is vulnerable to: GHSA-4p35-cfcx-8653","Warn: Project is vulnerable to: GHSA-7f3x-x4pr-wqhj","Warn: Project is vulnerable to: GHSA-jpp7-7chh-cf67","Warn: Project is vulnerable to: GHSA-q6wq-5p59-983w","Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2","Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T21:00:45.866Z","repository_id":38232923,"created_at":"2025-08-23T21:00:45.866Z","updated_at":"2025-08-23T21:00:45.866Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32715416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T19:35:05.142Z","status":"ssl_error","status_checked_at":"2026-05-06T19:35:03.996Z","response_time":117,"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":["bitbucket","bitbucket-cli","cli","developer-tools","git-cli","github","gitlab","gitlab-cli","productivity"],"created_at":"2024-11-22T10:15:42.960Z","updated_at":"2026-05-06T22:37:07.025Z","avatar_url":"https://github.com/sri85.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# okgit\n\n![Build](https://github.com/sri85/okgit/workflows/Node.js%20CI/badge.svg?branch=master) [![Node version](https://img.shields.io/node/v/okgit.svg?style=flat)](http://nodejs.org/download/) [![NPM Version](https://badge.fury.io/js/esta.svg?style=flat)](https://npmjs.org/package/okgit)\n\n`okgit` is a command-line tool for working with hosted Git services from your terminal.\n\nCurrent provider status:\n\n| Provider | Status |\n| --- | --- |\n| GitHub | Supported for pull requests, issues, and repository operations. |\n| GitLab | Partial legacy support for listing merge requests. |\n| Bitbucket | Not implemented yet. |\n\n## Installation\n\n```bash\nnpm install okgit -g\n```\n\n`okgit` requires Node.js 18 or newer.\n\n## Configuration\n\nRun:\n\n```bash\nokgit config\n```\n\nThe CLI prompts for:\n\n- Hosting provider.\n- Access token.\n- Organization or username.\n- Repository.\n- Optional pull request template.\n- Optional issue template.\n\nConfiguration is stored locally under `~/.git-cli/config.json`.\n\nTo switch the configured repository later:\n\n```bash\nokgit switchrepo owner/repo\n```\n\nTo inspect the active config without printing tokens:\n\n```bash\nokgit showConfig\n```\n\n## Security\n\n`okgit` stores your access token locally under `~/.git-cli/config.json`. Treat this file as a secret.\n\nThe CLI writes config files with restrictive permissions where supported by the operating system and redacts token values from normal config output.\n\nFor GitHub, prefer a fine-grained personal access token limited to the repositories you want to manage. Grant only the permissions needed for the commands you use:\n\n- Pull request permissions for PR commands.\n- Issue permissions for issue commands.\n- Repository metadata permissions for repository details.\n- Repository administration or security permissions only if enabling repository security settings.\n\n## Commands\n\n### Pull Requests\n\n```bash\nokgit fetchPR \u003crepo\u003e [state]\nokgit pull-requests \u003crepo\u003e [state]\nokgit createPR\nokgit create-pr\nokgit pr \u003cid\u003e --summary\nokgit pr \u003cid\u003e --comments\nokgit pr \u003cid\u003e --commits\nokgit pr \u003cid\u003e --files\nokgit pr \u003cid\u003e --state closed\nokgit pr \u003cid\u003e --addReviewers alice,bob\nokgit pr \u003cid\u003e --removeReviewers alice\nokgit pr \u003cid\u003e --merge\nokgit pr \u003cid\u003e --checkout\nokgit pr \u003cid\u003e --web\n```\n\n### Issues\n\n```bash\nokgit create-issue\nokgit list-issues\nokgit issues\nokgit issue \u003cid\u003e --details\nokgit issue \u003cid\u003e --state closed\nokgit issue \u003cid\u003e --assign alice,bob\nokgit issue \u003cid\u003e --label bug,docs\nokgit issue \u003cid\u003e --web\n```\n\n### Repositories\n\n```bash\nokgit repo-details \u003crepo\u003e\nokgit repository-details \u003crepo\u003e\nokgit create-repo\nokgit repo \u003crepoName\u003e --star\nokgit repo \u003crepoName\u003e --unstar\nokgit repo \u003crepoName\u003e --enableScan\nokgit openRepo\n```\n\n### GitLab Legacy\n\n```bash\nokgit fetchMR \u003crepo\u003e \u003cstate\u003e\n```\n\nGitLab support is not yet wired into the provider-first architecture and should be treated as partial.\n\n## Development\n\n```bash\nnpm install\nnpm run typecheck\nnpm test\nnpm run lint\nnpm run build\n```\n\nThe codebase is TypeScript and compiles to `dist`. The published binary points to `dist/cli.js`.\n\nArchitecture notes are in [ARCHITECTURE.md](./ARCHITECTURE.md), and contribution guidance is in [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## Project Status\n\n`okgit` is being prepared for broader open-source contribution. The current refactor direction is provider-first:\n\n```text\nCLI command -\u003e use case -\u003e provider contract -\u003e provider adapter -\u003e mapper -\u003e renderer\n```\n\nBackward-compatible command names are kept while cleaner aliases are introduced.\n\n## Release\n\nThe release process is not automated yet. Before publishing a new version, run the full validation suite and update release notes with user-facing command or behavior changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsri85%2Fokgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsri85%2Fokgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsri85%2Fokgit/lists"}