{"id":15570606,"url":"https://github.com/keith/ghb","last_synced_at":"2025-03-17T16:09:57.399Z","repository":{"id":18176810,"uuid":"21290277","full_name":"keith/ghb","owner":"keith","description":"Tools for GitHub","archived":false,"fork":false,"pushed_at":"2025-02-11T00:08:35.000Z","size":126,"stargazers_count":35,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-03T23:49:31.056Z","etag":null,"topics":["bash","command-line","git","github","zsh"],"latest_commit_sha":null,"homepage":"","language":"Python","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/keith.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":"2014-06-27T21:49:29.000Z","updated_at":"2024-12-30T22:21:48.000Z","dependencies_parsed_at":"2023-09-26T14:01:05.907Z","dependency_job_id":"4669f861-e2fe-4362-bd40-4ea78fafb7fd","html_url":"https://github.com/keith/ghb","commit_stats":{"total_commits":157,"total_committers":2,"mean_commits":78.5,"dds":0.03821656050955413,"last_synced_commit":"2d9336cd11fad8764b58a5f88bcba78fa1e06948"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fghb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fghb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fghb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keith%2Fghb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keith","download_url":"https://codeload.github.com/keith/ghb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066179,"owners_count":20392406,"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":["bash","command-line","git","github","zsh"],"created_at":"2024-10-02T17:43:04.769Z","updated_at":"2025-03-17T16:09:57.373Z","avatar_url":"https://github.com/keith.png","language":"Python","readme":"# ghb\n\nThis is a small set of scripts for working with github. Unlike hub or gh\nthe purpose of this is not to override `git` and add functionality on\ntop of that. Instead this uses a git like method of looking for\nexecutables named `ghb-*` and nesting them under the `ghb` command. This\nallows you to create simple single purpose scripts in any language.\n\n## Commands\n\n- [approve](ghb/approve.py), quickly approve a PR with a GitHub review\n- [assignme](ghb/assignme.py), assign yourself to a PR\n- [block](ghb/block.py), block users on GitHub\n- [clear-comments](ghb/clear_comments.py), delete all comments on a pull request\n- [close-prs](ghb/close_prs.py), close multiple PRs from a certain author targeting a specific branch\n- [comment](ghb/comment.py), comment on a list of issues / PRs\n- [contributions](ghb/contributions.py), view the number of contributions you've made today\n- [create](ghb/create.py), create github repos.\n- [delete-branches](ghb/delete_branches.py), delete stale branches matching some prefix\n- [download-release](ghb/download_release.py), download the most recent release from a repo\n- [get-blocks](ghb/get_blocks.py), get the users you've blocked\n- [greenify](ghb/greenify.py), force all statuses on a PR to be gren\n- [langs](ghb/langs.py), get the language breakdown for a repo\n- [ls-notifications](ghb/ls_notifications.py), list your unread notifications\n- [me](ghb/me.py), open your GitHub profile\n- [notifications](ghb/notifications.py), open your unread notifications in the browser\n- [pr](ghb/pr.py), open a PR from the current branch\n- [protect](ghb/protect.py), enable/disable branch protection for a specific repo and branch\n- [unblock](ghb/unblock.py), unblock a GitHub user\n- [unwatch](ghb/unwatch.py), bulk unwatch repos\n- [watch](ghb/watch.py), watch a repo\n\nSee the header comment in each individual file for specific usage.\n\n### Installation\n\n```\nbrew install keith/formulae/ghb\n```\n\nOr:\n\n```\npip install ghb\n```\n\n(and install `zsh/_ghb` if you want zsh completions)\n\n### Configuration\n\nTo setup authentication for `ghb` you must add a personal access token\nto your `~/.netrc` file. You can generate a token\n[here](https://github.com/settings/tokens). You should enable the\n`repo`, `workflow`, `notifications`, and `user` scopes (you maybe be\nable to omit some of those depending on which subcommands you plan to\nuse).\n\nThen in your `~/.netrc` file add:\n\n```\nmachine api.github.com\nlogin GITHUB_USERNAME\npassword TOKEN\n```\n\nAnd restrict permissions with `chmod 0600 ~/.netrc` (this is required)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeith%2Fghb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeith%2Fghb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeith%2Fghb/lists"}