chore(deps): update dependency cli/cli to v2.27.0 #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.2.0
->v2.27.0
Release Notes
cli/cli
v2.27.0
: GitHub CLI 2.27.0Compare Source
v2.27.0
This is primarily an out of band bugfix release for codespaces users, but does include a new command
gh run delete
.New Features
gh run delete
by @phillippbertram in https://github.com/cli/cli/pull/7254--repo
for search subcommands by @kkocha in https://github.com/cli/cli/pull/7274Bugfixes
New Contributors
Full Changelog: cli/cli@v2.26.1...v2.27.0-pre0
v2.26.1
: GitHub CLI 2.26.1Compare Source
What's Changed
Full Changelog: cli/cli@v2.26.0...v2.26.1
v2.26.0
: GitHub CLI 2.26.0Compare Source
gh 2.26.0
Important: credentials now stored securely by default
When running
gh auth login
, your credentials will now be stored in your operating system's credential storage instead of directly on disk. In other words,--secure-storage
is now default behavior. We've added a new flag,--insecure-storage
, to opt into the old insecure behavior in case you need to debug an issue with credential storage.As before, to take advantage of credential storage, please re-run
gh auth login
.For more context, you can read the v2.24.0 release notes
Ref: secure storage by default by @vilmibm in https://github.com/cli/cli/pull/7276
Other new features
--fail-fast
option topr checks --watch
by @benjlevesque in https://github.com/cli/cli/pull/7203--template
for issue and PR by @guerinoni in https://github.com/cli/cli/pull/7185Bugfixes
Docs and development changes
New Contributors
Full Changelog: cli/cli@v2.25.1...v2.26.0-pre0
v2.25.1
: GitHub CLI 2.25.1Compare Source
What's Changed
variable
: fix listing and deleting per-environment variables by @rsteube in https://github.com/cli/cli/pull/7207Full Changelog: cli/cli@v2.25.0...v2.25.1
v2.25.0
: GitHub CLI 2.25.0Compare Source
What's New
variable set
by @atirikt in https://github.com/cli/cli/pull/6928variable list
by @atirikt in https://github.com/cli/cli/pull/6995variable delete
by @atirikt in https://github.com/cli/cli/pull/6929ext install
: Introduce new--force
flag by @heaths in https://github.com/cli/cli/pull/7173What's Changed
browse
: Improve documentation and consistency of the--commit
flag by @alex-petrov-vt in https://github.com/cli/cli/pull/7105repo sync
: Ensuregit fetch
is always authenticated by @samcoe in https://github.com/cli/cli/pull/7139repo delete
: Don't delete repos that have transfered ownership by @samcoe in https://github.com/cli/cli/pull/7106auth
: Skip searching keyring when checking for environment tokens by @benjlevesque in https://github.com/cli/cli/pull/7169auth refresh
: Improve documentation of--scopes
flag behavior by @alex-petrov-vt in https://github.com/cli/cli/pull/7132pr status
: Hide "current branch" when using--repo
flag by @jtpetty in https://github.com/cli/cli/pull/7180repo archive
: Change to use Prompter package by @Ruminateer in https://github.com/cli/cli/pull/7083search
: Fix multiword keyword quoting by @samcoe in https://github.com/cli/cli/pull/7170New Contributors
Full Changelog: cli/cli@v2.24.3...v2.25.0
v2.24.3
: GitHub CLI 2.24.3Compare Source
What's Changed
Full Changelog: cli/cli@v2.24.2...v2.24.3
v2.24.2
: GitHub CLI 2.24.2Compare Source
What's Changed
Full Changelog: cli/cli@v2.24.1...v2.24.2
v2.24.1
: GitHub CLI 2.24.1Compare Source
What's Changed
auth login
: Fix retrieving current login name when pasting auth token @samcoe in https://github.com/cli/cli/pull/7114Full Changelog: cli/cli@v2.24.0...v2.24.1
v2.24.0
: GitHub CLI 2.24.0Compare Source
What's New
Option to store gh access token in system encrypted storage
The
gh auth login
andgh auth refresh
commands gained the new--secure-storage
flag. In this mode, the access token that GitHub CLI uses for GitHub API requests will now be stored in the system keyring instead of in the plain text config file.To migrate as an existing GitHub CLI user, re-authenticate like so:
Depending on your system, you could get an interactive prompt to allow the CLI tool to access the system keyring. The systems that are supported are:
Please note:
This feature is currently opt-in, but will become the default in the near future.
If none of the system storage providers are found, or the store operation fails, the token will be written to the config file as before.
Using this feature could result in Go extensions breaking if they were not updated to the latest go-gh version. If extensions you are using no longer work after migrating your token to secure token storage, please report the issue to that extension's repository.
Storing tokens in system keyring most likely won't work in “headless” environments.
Other additions
browse
: add--releases
option by @owenvoke in https://github.com/cli/cli/pull/6996gpg-key add --title
to name GPG keys by @rpadaki in https://github.com/cli/cli/pull/6993gh repo unarchive
by @Ruminateer in https://github.com/cli/cli/pull/7003arm64
prebuilt binaries by @beret in https://github.com/cli/cli/pull/4435What's Changed
repo fork
: retrygit clone
on git clone failure by @jsoref in https://github.com/cli/cli/pull/6962repo fork
: add newline after printing error about existing fork by @digitalfu in https://github.com/cli/cli/pull/7030codespace
: add--repo
filter to more commands by @cmbrose in https://github.com/cli/cli/pull/6669codespace code
: always open new VS Code window by @cmbrose in https://github.com/cli/cli/pull/7092pr diff
: sanitize control characters for terminal output by @mislav in https://github.com/cli/cli/pull/7108browse
: use--commit
flag to browse commit SHAs containing only digits by @yanskun in https://github.com/cli/cli/pull/7038pr status
: fix when on a detached HEAD by @alex-petrov-vt in https://github.com/cli/cli/pull/7082auth token
: respect GH_HOST if a hostname is not provided by @samcoe in https://github.com/cli/cli/pull/7094config.AuthToken
andconfig.DefaultHost
methods by @samcoe in https://github.com/cli/cli/pull/7049working-with-us.md
by @vilmibm in https://github.com/cli/cli/pull/7077New Contributors
Full Changelog: cli/cli@v2.23.0...v2.24.0
v2.23.0
: GitHub CLI 2.23.0Compare Source
What's New
repo fork
: Add--default-branch-only
flag by @jsoref in https://github.com/cli/cli/pull/6983repo edit
: Add visibility warning by @tuananhlai and @samcoe in https://github.com/cli/cli/pull/6980What's Changed
secret set
: Fix setting Codespaces user secrets by @joshmgross in https://github.com/cli/cli/pull/6923secret set
: Fix setting Dependabot org secrets by @samcoe in https://github.com/cli/cli/pull/6941secret set
: Fix multiline values when reading from .env file by @mislav in https://github.com/cli/cli/pull/6932run
: Fix integer overflow error when more than 255 run attempts by @samcoe in https://github.com/cli/cli/pull/6935extension browse
: Improve usability and accessibility by @vilmibm in https://github.com/cli/cli/pull/6584issue/pr edit
: Fix adding/removing projects using flags by @samcoe in https://github.com/cli/cli/pull/6955codespace delete
: Default to authenticated user by @luanzeba in https://github.com/cli/cli/pull/6944codespace create
: Default to using current repo by @rneatherway in https://github.com/cli/cli/pull/6596repo set-default
: Fix interactive mode not showing all remotes by @despreston in https://github.com/cli/cli/pull/6969GH_DEBUG
: Fix API logging corrupting response bodies by @mislav in https://github.com/cli/cli/pull/6976pr create
/repo fork
: Avoid implicitly fetching when adding a new git remote by @mislav in https://github.com/cli/cli/pull/6990Full Changelog: cli/cli@v2.22.1...v2.23.0
v2.22.1
: GitHub CLI 2.22.1Compare Source
What's Changed
gh issue edit
andgh pr edit
for GitHub Enterprise Server by @mislav in https://github.com/cli/cli/pull/6921--reviewer
flag completion by @benjlevesque in https://github.com/cli/cli/pull/6873--confirm
flag to--yes
for various destructive commands by @damiensedgwick in https://github.com/cli/cli/pull/6915New Contributors
Full Changelog: cli/cli@v2.22.0...v2.22.1
v2.22.0
: GitHub CLI 2.22.0Compare Source
What's New
Add all-new Projects support to issue and PR commands by @qoega @samcoe in https://github.com/cli/cli/pull/6735 https://github.com/cli/cli/pull/6907
Commands like
gh issue create --project mytitle
now work with all-new GitHub Projects, not just with “Projects (classic)” as it was before. However, an additional OAuth scope is needed to interact with new Projects. To enable this, run:Add
search commits
command by @kevhlee in https://github.com/cli/cli/pull/6817Add
repo edit --enable-discussions
by @azu in https://github.com/cli/cli/pull/6903auth status
now shows token scopes by @mntlty in https://github.com/cli/cli/pull/6546extension create
now makes the initial git commit by @mntlty in https://github.com/cli/cli/pull/6833What's Changed
pr list/view
: fix JSON export payloads forreviewers
andmergedBy
by @mislav in https://github.com/cli/cli/pull/6881repo set-default
: support bare git repos by @mislav in https://github.com/cli/cli/pull/6880gh api
: warn against Windows absolute paths by @kevhlee in https://github.com/cli/cli/pull/6895repo delete
: change confirmation flag to--yes
by @damiensedgwick in https://github.com/cli/cli/pull/6911search
: migrate search commands to new table printer and add headers by @samcoe in https://github.com/cli/cli/pull/6869oauth
library by @mislav in https://github.com/cli/cli/pull/6885New Contributors
Full Changelog: cli/cli@v2.21.2...v2.22.0
v2.21.2
: GitHub CLI 2.21.2Compare Source
What's Changed
New Contributors
Full Changelog: cli/cli@v2.21.1...v2.21.2
v2.21.1
: GitHub CLI 2.21.1Compare Source
What's Changed
Full Changelog: cli/cli@v2.21.0...v2.21.1
v2.21.0
: GitHub CLI 2.21.0Compare Source
What's New
Selecting a default repository
When running a gh command for the first time in a local git repository that has multiple git remotes, gh used to interactively ask
Which should be the base repository?
so that the user may choose the git remote to default to when making queries to GitHub repositories. This had several problems:.git/config
in the local repository.The new behavior is as follows:
gh repo set-default
command can be used to select a default, view the selected value, or undo the selection altogether.Thank you @bchadwic and @vilmibm! https://github.com/cli/cli/pull/4859 https://github.com/cli/cli/pull/6738
Internal git operations are now always authenticated
Previously, it could be confusing that a properly authenticated
gh repo clone <repo>
command could fail with a prompt for GitHub password. The underlying reason was thatgh repo clone
would shell out togit clone <url>
, and from then on the authentication was entirely up to git's own credential management. If git wasn't set up to authenticate to GitHub, this could result in a generic password prompt, which appeared as if it was coming fromgh
.The best general solution for setting up git to use credentials from GitHub CLI is to run
gh auth setup-git
. However, in this release, gh ensures that all underlying git operations are authenticated by gh, even if git on its own wasn't configured with a credential helper.The way this works is by injecting extra configuration arguments when shelling out to git:
Thank you @samcoe! https://github.com/cli/cli/pull/6541
The
gh api
command now accepts nested JSON parametersThe
gh api
command is similar to the popularcurl
tool, but with JSON encoding & parsing support and with built-in GitHub authentication. Sending JSON POST parameters was as easy as:Now there is also a way to send nested JSON objects and arrays via a special brackets syntax when specifying field names:
Thank you @mislav! https://github.com/cli/cli/pull/6614
Other goodies
issue lock/unlock
andpr lock/unlock
commands by @chemotaxis in https://github.com/cli/cli/pull/5333release create
: add--verify-tag
flag by @luanzeba in https://github.com/cli/cli/pull/6632release create
: add--exclude-pre-releases
flag by @owenvoke in https://github.com/cli/cli/pull/6625repo create
: prompt for repository owner in interactive mode by @twelvelabs in https://github.com/cli/cli/pull/6578repo edit
: add--allow-update-branch
flag by @browniebroke in https://github.com/cli/cli/pull/6706extension upgrade
: show version change information by @despreston in https://github.com/cli/cli/pull/6647-R
for--repo
shorthand and deprecate-r
by @cmbrose in https://github.com/cli/cli/pull/6725codespace create
: allow setting display name for the new codespace by @despreston in https://github.com/cli/cli/pull/6739alias list
: change output format to YAML by @ptforness in https://github.com/cli/cli/pull/6603author
information inpr list
JSON output by @hirasawayuki in https://github.com/cli/cli/pull/5049isDraft
tosearch prs
json options, matchingpr view
by @mgabeler-lee-6rs in https://github.com/cli/cli/pull/6704What's Changed
ap
: avoid sending empty JSON body when no params for a non-GET request by @mislav in https://github.com/cli/cli/pull/6775release
: more resilient release creation and asset management by @mislav in https://github.com/cli/cli/pull/6667release create
no longer leaves a temporary draft release behindrelease create
is now immediately referencable by tag namerelease download
by @mislav in https://github.com/cli/cli/pull/6694pr create
: exclude the current user from potential reviewers by @nsmag in https://github.com/cli/cli/pull/6464codespace ports
: use new domain in URLs of forwarded ports by @jshorty in https://github.com/cli/cli/pull/6705pr
package by @vilmibm in https://github.com/cli/cli/pull/6451release
command by @vilmibm in https://github.com/cli/cli/pull/6711New Contributors
Full Changelog: cli/cli@v2.20.2...v2.21.0
v2.20.2
: GitHub CLI 2.20.2Compare Source
What's Changed
Full Changelog: cli/cli@v2.20.1...v2.20.2
v2.20.1
: GitHub CLI 2.20.1Compare Source
What's Changed
New Contributors
Full Changelog: cli/cli@v2.20.0...v2.20.1
v2.20.0
: GitHub CLI 2.20.0Compare Source
What's New
New
gh extension browse
command by @vilmibm in https://github.com/cli/cli/pull/6530List, filter, and install available gh extensions from GitHub.com using an interactive interface:
New
gh extension search
command by @vilmibm in https://github.com/cli/cli/pull/6567Search GitHub.com repositories that have the
gh-extension
topic.What's Changed
Full Changelog: cli/cli@v2.19.0...v2.20.0
v2.19.0
: GitHub CLI 2.19.0Compare Source
What's New
Support explicitly marking a Release as "Latest" by @mislav in https://github.com/cli/cli/pull/6538
Example:
New
gh issue develop
command for managing branches linked to an issue by @Bestra in https://github.com/cli/cli/pull/6254Example:
gh issue develop 123 --checkout #=> remotely generates a branch linked to issue #​123 and checks it out locally
Add
gh release download --output
flag for downloading a single asset by @lpessoa in https://github.com/cli/cli/pull/6410Example:
run list
: addnumber
field to JSON export by @mislav in https://github.com/cli/cli/pull/6494run view
: addjobs
field to JSON export by @nsmag in https://github.com/cli/cli/pull/6507repo list --topic
flag now accepts multiple topics by @kratisto in https://github.com/cli/cli/pull/6539codespace rebuild
: perform incremental rebuild by default, add--full
for full rebuild by @jungaretti in https://github.com/cli/cli/pull/6551extension upgrade --force
overrides the pinned state of extensions by @mntlty in https://github.com/cli/cli/pull/6513What's Changed
pr create -R <repo> -H <branch>
: enable use from outside of a local git repo by @mislav in https://github.com/cli/cli/pull/6527codespace ssh
: avoid timing out waiting for the codespace to start by @ctaylor4874 in https://github.com/cli/cli/pull/6544release create
: avoid duplicate release when uploading assets by @mislav in https://github.com/cli/cli/pull/6493extension create
: upgrade template foractions/checkout@v3
by @swfz in https://github.com/cli/cli/pull/6543tablerow
template helper: fix measuring available width whenGH_FORCE_TTY=100%
and output redirection are used https://github.com/cli/cli/issues/6524hyperlink
template helper by @mislav in https://github.com/cli/cli/pull/6537gpg-key add
: explain in error message how to convert keys into ASCII-armored format for uploading by @BakaFT in https://github.com/cli/cli/pull/6528repo list
: fix listing when belonging to org with IP Allow list by @mislav in https://github.com/cli/cli/pull/6552auth
: fix setting up git credential helper for some Windows paths by @mislav in https://github.com/cli/cli/pull/6558github.token
instead ofsecrets.GITHUB_TOKEN
by @jsoref in https://github.com/cli/cli/pull/6535term
package from go-gh library by @mislav in https://github.com/cli/cli/pull/6421Time-Zone
headers in tests by @mislav in https://github.com/cli/cli/pull/6556garage.github.com
host by @mislav in https://github.com/cli/cli/pull/6478New Contributors
Full Changelog: cli/cli@v2.18.1...v2.19.0
v2.18.1
: GitHub CLI 2.18.1Compare Source
What's Changed
pr create
: Fix regression in non-interactive mode by @samcoe in https://github.com/cli/cli/pull/6472Full Changelog: cli/cli@v2.18.0...v2.18.1
v2.18.0
: GitHub CLI 2.18.0Compare Source
New Commands and Flags
cs rebuild
by @jungaretti in https://github.com/cli/cli/pull/6404ssh-key delete
by @nsmag in https://github.com/cli/cli/pull/6273gpg-key delete
by @nsmag in https://github.com/cli/cli/pull/6360release delete
: new--cleanup-tag
flag by @lktslionel in https://github.com/cli/cli/pull/6392isssue/pr comment
: new--edit-last
flag by @seachicken in https://github.com/cli/cli/pull/6384pr diff
: new--web
flag by @ffalor in https://github.com/cli/cli/pull/6439What's Changed
pr view
: display pull request checks by @lpessoa in https://github.com/cli/cli/pull/6292search prs
: show correct pull request merged state by @mntlty in https://github.com/cli/cli/pull/6411extension install
: improve error messaging when extension not found by @mntlty in https://github.com/cli/cli/pull/6425repo sync
: improve error messaging by @samcoe in https://github.com/cli/cli/pull/6430hyperlink <url> <title>
template helper https://github.com/cli/go-gh/pull/72Other Changes
headRefOid
to pull request fields by @nsmag in https://github.com/cli/cli/pull/6399GetRunningServer
method by @dmgardiner25 in https://github.com/cli/cli/pull/6358New Contributors
Full Changelog: cli/cli@v2.17.0...v2.18.0
v2.17.0
: GitHub CLI 2.17.0Compare Source
What's Changed
gh auth token
by @nsmag in https://github.com/cli/cli/pull/6324gpg-key list
output by @nsmag in https://github.com/cli/cli/pull/6353New Contributors
Full Changelog: cli/cli@v2.16.1...v2.17.0
v2.16.1
: GitHub CLI 2.16.1Compare Source
What's Changed
ssh-key list
: add header and ID column to the output by @nsmag in https://github.com/cli/cli/pull/6270workflow run
: recognize.yaml
in addition to.yml
suffix as workflow file name by @mislav in [https:/Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.