GitXplorerGitXplorer
k

ghb

public
35 stars
0 forks
1 issues

Commits

List of commits on branch main.
Unverified
71fc9107c5fe54279b99729330c689dc0561d60e

[pre-commit.ci] pre-commit autoupdate

ppre-commit-ci[bot] committed 3 months ago
Unverified
042b736c5cb20ee4a14c87ad7995a3512a9b5c2c

[pre-commit.ci] pre-commit autoupdate

ppre-commit-ci[bot] committed 3 months ago
Unverified
7af4b3d0f4727d670f78bb143bcf01146a6a3bd0

[pre-commit.ci] pre-commit autoupdate

ppre-commit-ci[bot] committed 3 months ago
Unverified
e66f2d9b7495edf72b4e3050d5efb6b5ce8fa113

[pre-commit.ci] pre-commit autoupdate

ppre-commit-ci[bot] committed 3 months ago
Unverified
6d1847021f20c56e1ac3de2cd39307a889bfaedc

[pre-commit.ci] pre-commit autoupdate

ppre-commit-ci[bot] committed 5 months ago
Unverified
6beeb4a80057e4585ea6f03fdf9702fde5b2a3b6

[pre-commit.ci] pre-commit autoupdate

ppre-commit-ci[bot] committed 5 months ago

README

The README file for this repository.

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, quickly approve a PR with a GitHub review
  • assignme, assign yourself to a PR
  • block, block users on GitHub
  • clear-comments, delete all comments on a pull request
  • close-prs, close multiple PRs from a certain author targeting a specific branch
  • comment, comment on a list of issues / PRs
  • contributions, view the number of contributions you've made today
  • create, create github repos.
  • delete-branches, delete stale branches matching some prefix
  • download-release, download the most recent release from a repo
  • get-blocks, get the users you've blocked
  • greenify, force all statuses on a PR to be gren
  • langs, get the language breakdown for a repo
  • ls-notifications, list your unread notifications
  • me, open your GitHub profile
  • notifications, open your unread notifications in the browser
  • pr, open a PR from the current branch
  • protect, enable/disable branch protection for a specific repo and branch
  • unblock, unblock a GitHub user
  • unwatch, bulk unwatch repos
  • watch, 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)

Configuration

To setup authentication for ghb you must add a personal access token to your ~/.netrc file. You can generate a token here. You should enable the repo, workflow, notifications, and user scopes (you maybe be able to omit some of those depending on which subcommands you plan to use).

Then in your ~/.netrc file add:

machine api.github.com
login GITHUB_USERNAME
password TOKEN

And restrict permissions with chmod 0600 ~/.netrc (this is required)