github cli/cli v1.8.0
GitHub CLI 1.8.0

latest releases: v2.49.2, v2.49.1, v2.49.0...
3 years ago

New features

Search functionality for issues and pull requests

The new issue/pr list --search flag enables searching issues and pull requests using keywords. (#3196, #3294).

In addition to searching by words that may appear in the contents of issues or pull requests, you can use any GitHub search syntax for more specific matching and to change the order of the results. For example:

  • gh issue list --state closed --search "crash in:title" - closed issues that contain "crash" in their title
  • gh issue list --search "no:assignee" - open issues without an assignee
  • gh issue list -l "bug" --search "sort:interactions-desc" - bug threads that have the most interactions
  • gh pr list --search "review-requested:@me" - pull requests where your review was requested
  • gh pr list --state merged --search "merged:>=2021-03-30" - pull requests merged after a certain date

Breaking: multiple labels are now combined using "AND" instead of "OR"

When supplying multiple label names to issue/pr list, the results will now only include results that have all of the listed labels (#3295).

This is a backwards-incompatible change, but it aligns the behavior with that which is experienced in the GitHub web interface and with what we believe should be the correct behavior.

Other enhancements

  • Add issue transfer command #3258

  • Add pr list --author filter option #3294

  • Show the diffstat in pr view #3086

  • Accept --body-file flag wherever --body is supported #3192

Fixes

  • issue/pr create: disable "Continue in browser" option if that would generate a URL that is too long #3271

  • issue/pr list --label: match label names case-insensitively #3295

  • pr checks: avoid ever truncating the URL column #3200

  • Ensure that table output expands to fill available terminal width #3200

  • release create/upload: allow retrying HTTP/2 asset uploads #3253

  • gist: remove functionality to add, view, or edit binary files #3042

  • Fix typos in documentation #3182 #3183

Kudos

Massive thanks to those who have contributed changes that went into this release:

And, as always, kudos to everyone who reported issues and wrote in with their feature requests. 🙇‍♂️

Don't miss a new cli release

NewReleases is sending notifications on new releases.