Skip to main content

A collection of useful GitHub commands

Project description

# ghb

This is a small set of scripts for working with github. Unlike hub or gh the purpose of this is not to override git and add functionality on top of that. Instead this uses a git like method of looking for executables named ghb-* and nesting them under the ghb command. This allows you to create simple single purpose scripts in any language.

## Commands

  • [approve](ghb/approve.py), quickly approve a PR with a GitHub review

  • [assignme](ghb/assignme.py), assign yourself to a PR

  • [block](ghb/block.py), block users on GitHub

  • [clear-comments](ghb/clear_comments.py), delete all comments on a pull request

  • [close-prs](ghb/close_prs.py), close multiple PRs from a certain author targeting a specific branch

  • [comment](ghb/comment.py), comment on a list of issues / PRs

  • [contributions](ghb/contributions.py), view the number of contributions you’ve made today

  • [create](ghb/create.py), create github repos.

  • [delete-branches](ghb/delete_branches.py), delete stale branches matching some prefix

  • [download-release](ghb/download_release.py), download the most recent release from a repo

  • [get-blocks](ghb/get_blocks.py), get the users you’ve blocked

  • [greenify](ghb/greenify.py), force all statuses on a PR to be gren

  • [langs](ghb/langs.py), get the language breakdown for a repo

  • [ls-notifications](ghb/ls_notifications.py), list your unread notifications

  • [me](ghb/me.py), open your GitHub profile

  • [notifications](ghb/notifications.py), open your unread notifications in the browser

  • [pr](ghb/pr.py), open a PR from the current branch

  • [protect](ghb/protect.py), enable/disable branch protection for a specific repo and branch

  • [unblock](ghb/unblock.py), unblock a GitHub user

  • [unwatch](ghb/unwatch.py), bulk unwatch repos

  • [watch](ghb/watch.py), watch a repo

See the header comment in each individual file for specific usage.

### Installation

` brew install keith/formulae/ghb `

Or:

` pip install ghb `

(and install zsh/_ghb if you want zsh completions)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghb-1.10.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

ghb-1.10.0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file ghb-1.10.0.tar.gz.

File metadata

  • Download URL: ghb-1.10.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for ghb-1.10.0.tar.gz
Algorithm Hash digest
SHA256 f7255e385e07efc91427f461341e54930f208ed36b2e0bbdc64bc30b3c38108a
MD5 9b171082b17996f6cc232c69fc0f1063
BLAKE2b-256 4dda9075b860e3b5273b35885bab0cf2eaf0d4da56ad20c8d688433d711d7429

See more details on using hashes here.

File details

Details for the file ghb-1.10.0-py3-none-any.whl.

File metadata

  • Download URL: ghb-1.10.0-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for ghb-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9de18bd8138010ae5c0520407d7ee97728241b45bec927c16dd51148a5ac7869
MD5 a137e064242bd4e4518db4896d194153
BLAKE2b-256 3af61e0481476b04b017ce30a3dd8a637dcbde7fb76ab891bbe8961b4f83f60a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page