load test
Find a file
Mislav Marohnić aaad263a3e Update output of upgrade available notice
- Individual components are now colored
- We don't say "Release notes" anymore since the URL doesn't contain
  any release notes yet
2019-12-04 15:14:48 +01:00
.github Don't use env vars! 2019-12-03 12:16:29 -08:00
.vscode Add VS Code settings 2019-10-07 16:36:23 +02:00
api Only run in prod 2019-12-02 15:57:34 -08:00
auth Fix opening OAuth URL in browser 2019-11-27 14:08:42 +01:00
command Add test 2019-12-02 15:08:36 -08:00
context Fix minor code issues discovered by staticcheck 2019-11-26 16:18:20 +01:00
git 🔥 more unused git functions 2019-11-26 16:23:03 +01:00
test Improvements to update notifier 2019-12-04 14:47:27 +01:00
update Improvements to update notifier 2019-12-04 14:47:27 +01:00
utils Add docs to color funcs 2019-11-28 11:55:14 +01:00
.gitignore Configure goreleaser.yml 2019-11-08 18:53:09 +01:00
.goreleaser.yml Allow configuring the update notifier from the outside 2019-12-04 15:07:10 +01:00
go.mod Improvements to update notifier 2019-12-04 14:47:27 +01:00
go.sum Improvements to update notifier 2019-12-04 14:47:27 +01:00
LICENSE Create LICENSE 2019-11-21 13:22:23 -06:00
main.go Update output of upgrade available notice 2019-12-04 15:14:48 +01:00
Makefile Allow configuring the update notifier from the outside 2019-12-04 15:07:10 +01:00
README.md Update README.md 2019-11-27 10:47:35 -06:00

gh - The GitHub CLI tool

The #ce-cli team is working on a publicly available CLI tool to reduce the friction between GitHub and one's local machine for people who use the command line primarily to interact with Git and GitHub. https://github.com/github/releases/issues/659

This tool is an endeavor separate from github/hub, which acts as a proxy to git, since our aim is to reimagine from scratch the kind of command line interface to GitHub that would serve our users' interests best.

Installation

warning, gh is in a very alpha phase

macOS

brew install github/gh/gh

Debian/Ubuntu Linux

  1. sudo apt install git if you don't already have git
  2. Download the .deb file from the releases page
  3. sudo dpkg -i gh_*_linux_amd64.deb install the downloaded file

(Uninstall with sudo apt remove gh)

Fedora/Centos Linux

  1. Download the .rpm file from the releases page
  2. sudo yum localinstall gh_*_linux_amd64.rpm install the downloaded file

(Uninstall with sudo yum remove gh)

Other Linux

  1. Download the _linux_amd64.tar.gz file from the releases page
  2. tar -xf gh_*_linux_amd64.tar.gz
  3. Copy the uncompressed gh somewhere on your $PATH (e.g. sudo cp gh_*_linux_amd64/bin/gh /usr/local/bin/)

(Uninstall with rm)

Process

How to create a release

This can all be done from your local terminal.

  1. git tag 'vVERSION_NUMBER' # example git tag 'v0.0.1'
  2. git push origin vVERSION_NUMBER
  3. Wait a few minutes for the build to run and CI to pass. Look at the actions tab to check the progress.
  4. Go to https://github.com/github/homebrew-gh/releases and look at the release

Test a release

A local release can be created for testing without creating anything official on the release page.

  1. git tag 'v6.6.6' # some throwaway version number
  2. env GH_OAUTH_CLIENT_SECRET=foobar GH_OAUTH_CLIENT_ID=1234 goreleaser --skip-publish --rm-dist
  3. Check and test files in dist/
  4. git tag -d v6.6.6 # delete the throwaway tag