
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Github command line tools helps you improve using git and github from the terminal.
All the power of GitHub in your terminal.
gh [command] [--flags]
[sudo] npm install -g gh
In order to sucessfully run this project you must have NodeJS installed.
gh help
Option | Usage | Type |
---|---|---|
-l , --list | Required | Boolean |
-a , --all | Optional | Boolean |
-b , --branch | Optional | String |
-r , --repo | Optional | String |
-s , --user | Optional | String |
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 ```
Option | Usage | Type |
---|---|---|
-f , --fetch | Required | Boolean |
-n , --number | Required | Number |
-M , --merge | Optional | Boolean |
-R , --rebase | Optional | Boolean |
-r , --repo | Optional | String |
-s , --user | Optional | String |
Fetch pull request and checkout into a new branch pull-1
.
gh pr --number 1 --fetch ```
Fech pull request rebasing or merging into the current branch.
gh pr --number 1 --fetch --rebase
gh pr --number 1 --fetch --merge
```
Option | Usage | Type |
---|---|---|
-M , --merge | Required | Boolean |
-R , --rebase | Required | Boolean |
-n , --number | Optional | Number |
-b , --branch | Optional | String |
-r , --repo | Optional | String |
-s , --user | Optional | String |
Omitting --number
will try to guess the pull number from branch name e.g. pull-1
results in --number 1
. Omitting --branch
will merge or rebase into config.default_branch
.
Merge or rebase pull request into a branch.
gh pr --merge [--number 1] [--branch master] ```
```
gh pr --rebase [--number 1] [--branch master] ```
Option | Usage | Type |
---|---|---|
-c , --comment | Required | String |
-n , --number | Required | Number |
-r , --repo | Optional | String |
-s , --user | Optional | String |
Comment on a pull request.
gh pr --number 1 --comment "Merged, thank you!" ```
Option | Usage | Type |
---|---|---|
--fwd | Required | String |
-n , --number | Required | Number |
Forward a pull request to another reviewer.
gh pr --number 1 --fwd username ```
Option | Usage | Type |
---|---|---|
-o , --open | Required | Boolean |
-C , --close | Required | Boolean |
-n , --number | Required | Number |
-r , --repo | Optional | String |
-s , --user | Optional | String |
Open a pull request.
gh pr --number 1 --open ```
Close a pull request.
gh pr --number 1 --close ```
Open or close a pull request that you've sent to someone.
gh pr --number 1 --close --user eduardolundgren ```
Option | Usage | Type |
---|---|---|
-s , --submit | Required | String |
-b , --branch | Optional | String |
-t , --title | Optional | String |
Omitting --title
will submit a pull request using current branch name as title.
Submit a pull request using the current branch.
gh pr --submit eduardolundgren --title 'Fix #32' ```
Submit a pull request using the current branch to dev branch.
gh pr --submit eduardolundgren --branch dev ```
Option | Usage | Type |
---|---|---|
-l , --latest | Required | Boolean |
-r , --repo | Optional | String |
-s , --user | Optional | String |
Display the latest activities on the current repository.
gh nt --latest ```
Display the latest activities on a certain repository.
gh nt --latest --user eduardolundgren --repo node-gh ```
Option | Usage | Type |
---|---|---|
-w , --watch | Required | Boolean |
-r , --repo | Optional | String |
-s , --user | Optional | String |
Watch for any activity on the current repository.
gh nt --watch ```
Watch for any activity on a certain repository.
gh nt --watch --user eduardolundgren --repo node-gh ```
Option | Usage | Type |
---|---|---|
-N , --new | Required | Boolean |
-t , --title | Required | String |
-L , --label | Optional | String |
-m , --message | Optional | String |
-r , --repo | Optional | String |
-u , --user | Optional | String |
Create a new issue on the current repository.
gh is --new --title 'Node GH rocks!' --message 'Markdown support' ```
Create a new issue on a certain repository.
gh is --new --title 'Node GH rocks!' --message 'Markdown support' --user eduardolundgren --repo node-gh ```
Create a new issue with labels.
gh is --new --title 'Node GH rocks!' --label bug,question,test ```
Option | Usage | Type |
---|---|---|
-c , --comment | Required | String |
-n , --number | Required | Number |
-r , --repo | Optional | String |
-u , --user | Optional | String |
Comment on an issue of the current repository.
gh is --number 1 --comment 'Node GH rocks!' ```
Comment on an issue of a certain repository.
gh is --number 1 --comment 'Node GH rocks!' --user eduardolundgren --repo node-gh ```
Option | Usage | Type |
---|---|---|
-l , --list | Required | Boolean |
-a , --all | Optional | String |
-r , --repo | Optional | String |
-u , --user | Optional | String |
List all issues on the current repository.
gh is --list ```
List all issues from all repositories.
gh is --list --all ```
List all issues on a certain repository.
gh is --list --user eduardolundgren --repo node-gh ```
Eduardo Lundgren | Zeno Rocha |
Contribute new commands to this project by copying and editing the content of Hello World example.
v0.1.10 May 30, 2013
v0.1.8 May 30, 2013
v0.1.7 May 30, 2013
--number
flagv0.1.6 May 30, 2013
gh pr --submit
v0.1.5 May 29, 2013
v0.1.4 May 28, 2013
--comment
to --message
--pull
to --number
v0.1.3 May 28, 2013
v0.1.2 May 28, 2013
v0.1.1 May 27, 2013
v0.1.0 May 26, 2013
--comment
to --message
v0.0.7 May 24, 2013
v0.0.6 May 17, 2013
v0.0.5 May 16, 2013
v0.0.4 May 16, 2013
v0.0.3 May 16, 2013
v0.0.2 May 16, 2013
v0.0.1 May 14, 2013
FAQs
Boost your productivity & automate tasks when working with GitHub, all from the comfort of your CLI.
The npm package gh receives a total of 14,305 weekly downloads. As such, gh popularity was classified as popular.
We found that gh demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.