Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gh

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh

Github command line tools helps you improve using git and github from the terminal.

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25K
increased by26.79%
Maintainers
1
Weekly downloads
 
Created
Source

node-gh Build Status

Github command line tools helps you improve using Git and Github from the terminal.

Class Octocat

Usage

gh  [command] [payload] [--flags]

Install

npm install -g gh

Available commands

Pull requests

Listing
  • List open pulls requests for the current branch.

gh pr --list ```

  • List open pulls requests for all branches.

gh pr --list --all ```

  • List open pulls requests for a branch.

gh pr --list --branch master ```

Fetching
  • Fetch pull request and checkout into a new branch.

gh pr --pull 1 --fetch --branch new_branch ```

  • Fech pull request, rebasing or merging, into a branch. When --branch is not specified uses the current branch.

gh pr --pull 1 --fetch --rebase [--branch master] gh pr --pull 1 --fetch --merge [--branch master] ```

Merging or rebasing
  • Merge or rebase pull request into a branch.

gh pr --merge [--pull 1] [--branch master] ```

```

gh pr --rebase [--pull 1] [--branch master] ```

  • Omitting --pull will try to guess the pull number from branch name e.g. pull-1 results in --pull 1.
  • Omitting --branch will merge or rebase into config.defaultbranch.
Commenting
  • Comment in a pull request.

gh pr --pull 1 --comment "Merged, thank you!". ```

Forwarding
  • Forward a pull request to another reviewer.

gh pr --pull 1 --fwd username ```

Open and close
  • Close a pull request.

gh pr --pull 1 --open ```

```

gh pr --pull 1 --close ```

Submiting
  • Submit a pull request.

gh pr --submit eduardolundgren ```

Notification

  • Display the latest activities on the current repository.

gh nt --latest ```

  • Watch for any activity on the current repository.

gh nt --watch ```

Team

Eduardo LundgrenZeno Rocha
Eduardo LundgrenZeno Rocha

History

  • v0.0.7 May 24, 2013
    • Add pull request forward command
    • Add Travis continous integration with JSHint
    • Create a new website under gh-pages branch
    • Update dependency version: git-wrapper@0.1.1
    • Add Hello World and Notification tasks
  • v0.0.6 May 17, 2013
    • Add hability to merge or rebase pull request
    • Add base.getUser and git.merge helpers
  • v0.0.5 May 16, 2013
    • Add login to be invoked by default in series
  • v0.0.4 May 16, 2013
    • Create ~/.gh.json if needed
  • v0.0.3 May 16, 2013
    • Merge user ~/.gh.json with default .gh.json
    • Add default .gh.json
    • Fix bin path
  • v0.0.2 May 16, 2013
    • Add fetch, open/close, comment
    • Use moment humanize utility
  • v0.0.1 May 14, 2013
    • Initial commit

License

BSD License

Keywords

FAQs

Package last updated on 25 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc