@buildo/hophop
![](https://img.shields.io/npm/v/@buildo/hophop.svg)
Last updated 10 months ago by francescocioria .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @buildo/hophop 
SYNC missed versions from official npm registry.

Hophop

A minimal tool to accelerate the GitHub workflow from the command line.

Installation

npm install -g @buildo/hophop with a non-ancient version of npm

Setup

  • hophop gh setup to set the GitHub API access token
    • to generate a GitHub token click on the url printed by hophop in the terminal image with that link, the required permissions are already filled: all you need to do is click the green "Generate token" button at the bottom of the page

GitHub Workflow

hophop gh feature

to create a local branch referencing an open issue (or, optionally, create a new issue on the fly).

hophop gh feature # if you don't know the issue number
hophop gh feature 123 # if you already know the issue number
hophop gh feature create # to create an issue on the fly

hophop gh pr

to push the current feature branch and, if needed, open a Pull Request. The name of the pull request will cause GitHub to auto-close the issue when the PR is merged.

hophop gh pr # to open pull request on master
hophop gh pr --base # to open pull request on a different branch (hophop will ask you to select a branch)

hophop gh commit

to create a commit that closes an open issue.

hophop gh open

to open on Chrome the PR associated with current branch.

.hophoprc

add an optional .hophoprc file in your project root folder in order to set default answers to the hophop gh feature task questions.

Config:

type Option = 'ask' | 'no' | 'n' | 'nope' | 'yes' | 'y' | 'yep' | 'si' | 'of course' | 'youbetcha';

type Config = {
  apiUrl?: string; // default: 'https://api.github.com'
  branchSuffix?: Option; // default: 'ask'
  addWIPLabel?: Option; // default: 'y'
  openPRWithTestPlanTemplate?: Option; // default: 'y'
};

example

branchSuffix: y

zsh autocompletion

After installing the package, an autocompletion file is available at

NPM_PREFIX/lib/node_modules/@buildo/hophop/_hophop

where NPM_PREFIX is usually /usr/local and it can be retrieved using npm prefix -g

Installation using oh-my-zsh

If you use oh-my-zsh, installing the autocompletion is as easy as:

mkdir -p ~/.oh-my-zsh/custom/plugins/hophop
ln -s `(npm prefix -g)`/lib/node_modules/@buildo/hophop/_hophop _hophop

Then enable the plugin in your .zshrc, for example:

plugins=(git brew hophop)

Current Tags

  • 3.0.0                                ...           latest (10 months ago)
  • 1.0.0-0                                ...           next (2 years ago)

50 Versions

  • 3.0.0                                ...           10 months ago
  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-0                                ...           2 years ago
  • 0.10.4                                ...           3 years ago
  • 0.10.3                                ...           3 years ago
  • 0.10.2                                ...           3 years ago
  • 0.10.1                                ...           3 years ago
  • 0.10.0                                ...           3 years ago
  • 0.9.7                                ...           3 years ago
  • 0.9.6                                ...           3 years ago
  • 0.9.5                                ...           3 years ago
  • 0.9.4                                ...           3 years ago
  • 0.9.3                                ...           3 years ago
  • 0.9.2                                ...           3 years ago
  • 0.9.1                                ...           3 years ago
  • 0.9.0                                ...           3 years ago
  • 0.8.7                                ...           3 years ago
  • 0.8.6                                ...           3 years ago
  • 0.8.5                                ...           4 years ago
  • 0.8.4                                ...           4 years ago
  • 0.8.3                                ...           4 years ago
  • 0.8.2                                ...           4 years ago
  • 0.8.1                                ...           4 years ago
  • 0.7.1                                ...           4 years ago
  • 0.8.0                                ...           4 years ago
  • 0.7.0                                ...           4 years ago
  • 0.6.0                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.7                                ...           4 years ago
  • 0.4.6                                ...           4 years ago
  • 0.4.5                                ...           4 years ago
  • 0.4.4                                ...           4 years ago
  • 0.4.3                                ...           4 years ago
  • 0.4.2                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.9                                ...           4 years ago
  • 0.0.8                                ...           4 years ago
  • 0.0.7                                ...           4 years ago
  • 0.0.6                                ...           4 years ago
  • 0.0.5                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 51
Last Day 0
Last Week 51
Last Month 2
Dependencies (10)
Dev Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |