Discover, install, and configure shell plugins with Fig Plugin Store →
🧑‍💻

Zsh Hub

Github hub zsh plugin for forking model

soraliu
|
9 stars
1 forks

zsh-hub

Github hub zsh plugin

Prerequisites

Installation

git clone https://github.com/soraliu/zsh-hub.git $ZSH_CUSTOM/plugins/zsh-hub
# ~/.zshrc

plugins=(
  # ...
  zsh-hub
  # ...
)

Usage

grebase (rebase)

Find the ancestor, and squash commit.

git fetch origin # upstream
grebase

gupdate (update issue)

Push to forked repo, and create a pull request.

# add label
gupdate -l lgtm
# asign to a user
gupdate -a username

gpr (pull request)

Push to forked repo, and create a pull request.

gpr
# show the pr in browser
gpr -s

gct (comment)

Comment the pr based on current branch

gct '/publish'

# multiple lines
gct '/publish
/hold'

gci (ci-status)

Check the ci status of current pr

gci