Skip to content

Releases: cli/cli

v0.9.0

26 May 16:57
70a855c

Choose a tag to compare

pr diff, pr review, pr merge, pr ready

This release expands the GitHub pull request work flow with the ability to view pull request diffs,
review pull requests, and merge pull requests.

$ gh pr checkout 123
$ gh pr diff
$ gh pr review --approve -b "lgtm"
$ gh pr merge

Both gh pr review and gh pr merge feature interactive modes by default.

You can also now mark a draft pull request as ready for review with gh pr ready.

( #885, #873, #960, #962, #899, #982 )

Linux manpages

We are now packaging man pages with our linux releases #915. Thanks @mtfurlan!

Bugfixes

  • Preserve CODEOWNERS reviewers in pr create #912
  • Reduce latency when resolving assignees, reviewers, labels on create via flags #908
  • Fix re-authentication not correctly reloading config file #943
  • Avoid crash in pr view with reviewers #975

Development

  • Fix and tweak for site build #958
  • Fix lint errors #978
  • Fix linter in CI #996
  • Enable linting for pull requests #988

Documentation

  • Add description default private for repo create #891
  • Change source installation docs to avoid suggesting to change PATH #923
  • Cosmetic about short descriptions #964

We on the CLI team hope that folks are as good as can be in these times.

best,

@vilmibm

v0.8.0

11 May 18:18
aac9947

Choose a tag to compare

0.8.0

This release features new functionality as well as bug fixes. The new functionality largely focuses on making it easier to work with pull requests.

pull request and issue metadata

When creating pull requests and issues you can now select Add Metadata in the final prompt to assign reviewers, labels, and more. This metadata can also be added with flags instead of interactively. See gh help pr create or gh help issue create for more information.

(#819, #839, #787)

pull request and issue state management

For example, you can now run:

gh pr close 123
gh pr reopen 123

to manage a pull request's state.

(#863, #843, #853, #854)

Features

  • Add Reviewers to pr view in CLI #762
  • Update gh help output #815

Bugfixes

  • Fix parsing some issue template names #879
  • Fix pr status -R crash with closed PR on the default branch #880
  • Fix the help docs on subcommands #889
  • Show "Awaiting triage" for empty project state #836
  • Fix gh updater mechanism for unauthenticated users #821
  • Ask for read:org OAuth scope, warn for outdated tokens #786
  • Hide closed/merged PRs from default branch #842

Development

  • Parallelism-safe mechanism for stubbing HTTP responses #874
  • Upgrade to Go 1.14 in CI #881
  • Add command line syntax doc #862
  • Update README #828
  • Update documentation site on release #813
  • Help goreleaser find the correct git tag during release #820
  • totally inelegant approach to hopefully stopping flakey tests #852
  • RFC: Make RunCommand less brittle #856

...also there is a fun hidden command now. see if you can find it :3

Have a great day!

-vilmibm

v0.7.0

22 Apr 22:21
a7931a0

Choose a tag to compare

gh config

The big theme of this release is the new gh config command that gives you control over two aspects of gh usage: defaulting to preferring SSH git remotes and setting a preferred editor. To learn more check out the manual!

New Stuff

  • gh config #728, #814, #810, #816
  • Support NO_COLOR environment variable to disable color #742
  • Show issue state in issue view and pr view #667
  • Add relevant metadata to pr view #748
  • Add relevant metadata to issue view #745
  • Accept clone directory as argument to repo clone #721, #727

Bug Fixes

  • Fix pr create finding the right commits after repo fork #731, #752
  • Improve completion command #761
  • Avoid race conditions when interacting with the spinner #778

Documentation

  • Improve issue/pr/repo view documentation #764

Dev/release stuff

  • Check code with golangci-lint on push #734
  • Appease linter that warns about redundant type in composite literals #779
  • Avoid intermittent CI failures while setting up Go #780

Thanks to all our community contributors in this release! <3

v0.6.4

01 Apr 17:51
e066e98

Choose a tag to compare

  • Avoid crash for auto-forking scenario in pr create #726

v0.6.3

31 Mar 19:59

Choose a tag to compare

gh issue/pr view changes

  • switch {pr,issue} view default #665

gh repo view/fork improvements

  • Add ability to view repo in terminal and do it by default #690
  • repo fork: reuse existing git remote if available #708
  • Automatically set up "upstream" remote for forks #719
  • Add "upstream" remote after repo fork #720

gh pr checkout/view/status improvements

  • Respect base repository when passing URL argument to pr checkout/view #687

  • Add unicode to pr status #683

  • Prevent crash when encountering "STALE" check conclusion #707

gh pr create improvements

  • Avoid auto-forking/pushing an already pushed branch in pr create #704
  • Creating a PR now always prioritizes an existing fork as a push target #680
  • respect -B when checking for existing pull requests #694
  • Use remote tracking branch for base when detecting commits for pr create #717

Miscellaneous

  • Bump glamour dependency #689
  • Enable tests to capture spinner output #688
  • simplify sort string slice method call #697
  • Support www.github.com git remote URLs #709
  • fix branch detection on empty repo #696

v0.6.2

18 Mar 19:42
2660561

Choose a tag to compare

gh pr create improvements:

  • Autofill title & body using information from git commit messages #590

  • Check for existing pull request before attempting to open a new one #668

  • Ensure all inputs are validated before forking and/or pushing the head branch #618

gh pr status improvements:

  • Show state instead of checks and reviews for closed/merged pull request belonging to the current branch #624

  • Allow use in cases when there is no current git branch #670

  • Only show the most recent pull request for the current branch #638

gh issue/pr list improvements:

  • Add ability to list issues by author #625

  • Avoid showing duplicated pull requests in output #594

  • Show the total number of issues/pull requests in output header #440

  • Unify output formats between issue list and issue status #532

gh repo improvements:

  • Fix repo create --homepage <URL> #617

  • Verify repository exists when using repo view <repo> #598 #629

  • Consistent punctuation in repo docs #586

Miscellaneous:

  • Don't require a local git repository when --repo flag is used #656

  • Fix issue view usage description #651

  • Improve callback handling during authorization flow to enable authentication in certain browsers #650

  • Add support for PowerShell completion #591

v0.6.1

04 Mar 17:15
bc6a151

Choose a tag to compare

  • Add fork, clone, create, view to repo usage #578

  • Bump glamour dependency #583

v0.6.0

03 Mar 22:11
6c2328b

Choose a tag to compare

New commands:

  • Add repo clone <repo> command #545

  • Add repo create command #547

  • Add repo fork command #549

  • Add repo view command #337

Fixes:

  • Preserve explicit title & body in issue create --web #538

  • Support issue list --limit=N where N is greater than 100 #541

  • Ensure that gh <command> -h is equivalent to --help #574

  • Fix detecting PR for current branch pushed to fork #567

Improvements:

  • More detailed logging for HTTP requests to stderr with DEBUG=1 #306

  • Show git push output during pr create #539

  • Use gray color for PR number if PR is a draft #550

  • Print authentication tip when opening the browser fails #553

  • Handle properly passed #<num> as equivalent to <num> for PRs and Issues #474

  • Improve error message for issue URL with no args #560

  • Add ability to visually differentiate pull requests by their state #530

v0.5.7

20 Feb 22:02
b5d0b7c

Choose a tag to compare

  • Better error when running in a repo with no git remotes #521

  • Fix column alignment and truncation for Eastern Asian languages #518

  • Respect title & body from arguments to pr create -w #523

v0.5.6

20 Feb 13:05
cbc2d16

Choose a tag to compare

Fixes

  • Ensure GitHub CLI uses production OAuth application even when built from source #492

    If you had trouble using gh for your private organization repository, please try upgrading and forcing re-authentication by doing rm ~/.config/gh/config.yml.

  • Fix crash in gh issue/pr list for narrow terminals #495

  • Include merged PRs with gh issue/pr list --state=closed #513

  • Respect overriden base branch in pr create --web #483

  • Preserve issue/PR template when skipping editor phase in gh issue/pr create #497

Improvements

  • Support reproducible builds in Makefile #406

  • Have gh --version display correct version when installed via go get #491

  • Use glamour as markdown rendering backend for issue/PR previews #311

  • Provide linux builds for arm64 #459

  • Handle runtime errors when generating shell completions #505