Path to this page:
Subject: CVS commit: pkgsrc/net/gh
From: Benny Siegert
Date: 2021-04-18 12:54:08
Message id: 20210418105408.A2540FA95@cvs.NetBSD.org
Log Message:
Update Github CLI to 1.9.1.
GitHub CLI 1.9.1
----------------
* Fix cold cache problem in run view --log and run view --log-failed
GitHub CLI 1.9.0
----------------
New Features
GitHub Actions in the CLI
Three new top-level commands have been added to gh:
* gh run lists, views, and interacts with workflow runs
* gh workflow lists, views, runs, and toggles workflow files
* gh actions prints information about the integration between gh and GitHub
Actions
You can now get insight into what GitHub Actions is running across your
repository with
$ gh run list
and dig into specifics with
$ gh run view
$ gh run view --log
$ gh run view --log-failed
Run gh actions to learn more and get started. There is also a video demo
covering a bunch of the new commands.
This was a huge effort that brought in the entire CLI team as well as a lot of
community input and feedback. We're excited for you to try it out!
Please let us know what you get up to with this new integration or if you have
suggestions for our next iteration of support in our discussions thread.
Issue and pull request commands now support JSON export
Issue and pull request list, view, and status commands now support the --json
option which enables the JSON output format suitable for scripts.
The --json flag accepts a comma-separated list of data fields to request from
the GitHub server. Field names must always be specified to use this feature. To
see the list of available fields, use the --json flag without a value.
Additionally, any command that accepts --json also supports the --jq and
--template options that were previously available only in the gh api command.
These options allow filtering down or transforming the resulting JSON into
something more immediately usable by shell scripts. Refer to gh help formatting
for more information.
Development and Documentation Updates
* Add tests for manual pages generation
* Tweak build scripts to enable cross-compiling
* Add note about current branch detection
GitHub CLI 1.8.1
----------------
Fixes
* Fix pr status/checks crash with unrecognized statuses from the server
* Fix repo fork --clone not cloning an existing fork locally when running
non-interactively
* Fix commands not respecting default hostname from GH_HOST
GitHub CLI 1.8.0
----------------
New features
Search functionality for issues and pull requests
The new issue/pr list --search flag enables searching issues and pull requests
using keywords.
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.
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
* Add pr list --author filter option
* Show the diffstat in pr view
* Accept --body-file flag wherever --body is supported
Fixes
* issue/pr create: disable "Continue in browser" option if that would
generate a URL that is too long
* issue/pr list --label: match label names case-insensitively
* pr checks: avoid ever truncating the URL column
* Ensure that table output expands to fill available terminal width
* release create/upload: allow retrying HTTP/2 asset uploads
* gist: remove functionality to add, view, or edit binary files
* Fix typos in documentation
Files: