Releases: cli/cli
GitHub CLI 2.66.1
Hotfix: gh pr view
fails with provided URL
This addresses a regression in gh pr view
was reported in #10352. This regression was due to a change in v2.66.0
that no longer allowed gh pr
subcommands to execute properly outside of a git repo.
What's Changed
Full Changelog: v2.66.0...v2.66.1
GitHub CLI 2.66.0
gh pr view
and gh pr status
now respect common triangular workflow configurations
Previously, gh pr view
and gh pr status
would fail for pull request's (PR) open in triangular workflows. This was due to gh
being unable to identify the PR's corresponding remote and branch refs on GitHub.
Now, gh pr view
and gh pr status
should successfully identify the PR's refs when the following common git configurations are used:
branch.<branchName>.pushremote
is setremote.pushDefault
is set
Branch specific configuration, the former, supersedes repo specific configuration, the latter.
Additionally, if the @{push}
revision syntax for git resolves for a branch, gh pr view
and gh pr status
should work regardless of additional config settings.
For more information, see
gh secret list
, gh secret set
, and gh secret delete
now require repository selection when multiple git
remotes are present
Previously, gh secret list
, gh secret set
, and gh secret delete
would determine which remote to target for interacting with GitHub Actions secrets. Remotes marked as default using gh repo set-default
or through other gh
commands had higher priority when figuring out which repository to interact with. This could have unexpected outcomes when using gh secret
commands with forked repositories as the upstream repository would generally be selected.
Now, gh secret
commands require users to disambiguate which repository should be the target if multiple remotes are present and the -R, --repo
flag is not provided.
For more information, see #4688
Extension update notices now notify once every 24 hours per extension and can be disabled
Previously, the GitHub CLI would notify users about newer versions every time an extension was executed. This did not match GitHub CLI notices, which only notified users once every 24 hours and could be disabled through an environment variable.
Now, extension update notices will behave similar to GitHub CLI notices. To disable extension update notices, set the GH_NO_EXTENSION_UPDATE_NOTIFIER
environment variable.
For more information, see #9925
What's Changed
✨ Features
- Draft for discussing testing around extension update checking behavior by @andyfeller in #9985
- Make extension update check non-blocking by @andyfeller in #10239
- Ensure extension update notices only notify once within 24 hours, provide ability to disable all extension update notices by @andyfeller in #9934
- feat: make the extension upgrade fancier by @nobe4 in #10194
- fix: padded display by @nobe4 in #10216
- Update
gh attestation
attestation bundle fetching logic by @malancas in #10185 - Require repo disambiguation for secret commands by @williammartin in #10209
- show error message for rerun workflow older than a month ago by @iamrajhans in #10227
- Update
gh attestation verify
table output by @malancas in #10104 - Enable MSI building for Windows arm64 by @dennisameling in #10297
- feat: Add support for creating autolink references by @hoffm in #10180
- Find PRs using
@{push}
by @Frederick888 in #9208 - feat: Add support for viewing autolink references by @hoffm in #10324
- Update
gh attestation
bundle fetching logic by @malancas in #10339
🐛 Fixes
- gh gist delete: prompt for gist id by @danochoa in #10154
- Better handling for waiting for codespaces to become ready by @cmbrose in #10198
- Fix:
gh gist view
andgh gist edit
prompts with no TTY by @mateusmarquezini in #10048 - Remove naked return values from
ReadBranchConfig
andprSelectorForCurrentBranch
by @jtmcg in #10197 - Add job to deployment workflow to validate the tag name for a given release by @jtmcg in #10121
- [gh run list] Stop progress indicator on failure from
--workflow
flag by @iamazeem in #10323 - Update deployment.yml by @andyfeller in #10340
📚 Docs & Chores
- Add affected version heading to bug report issue form by @BagToad in #10269
- chore: fix some comments by @petercover in #10296
- Update triage.md to reflect FR experiment outcome by @jtmcg in #10196
- Clear up --with-token fine grained PAT usage by @williammartin in #10186
- Correct help documentation around template use in
gh issue create
by @andyfeller in #10208 - chore: fix some function names in comment by @zhuhaicity in #10225
- Tiny typo fix by @robmorgan in #10265
- add install instructions for Manjaro Linux by @AMS21 in #10236
- Update test to be compatible with latest Glamour v0.8.0 by @ottok in #10151
- Add more
gh attestation verify
integration tests by @malancas in #10102
Dependencies
- Bump github.com/mattn/go-colorable from 0.1.13 to 0.1.14 by @dependabot in #10215
- Bump github.com/sigstore/protobuf-specs from 0.3.2 to 0.3.3 by @dependabot in #10214
- Bump github.com/gabriel-vasile/mimetype from 1.4.7 to 1.4.8 by @dependabot in #10184
- Bump google.golang.org/protobuf from 1.36.2 to 1.36.3 by @dependabot in #10250
- Bump golangci-linter and address failures to prepare for Go 1.24 strictness by @mikelolasagasti in #10279
- Bump github.com/google/go-containerregistry from 0.20.2 to 0.20.3 by @dependabot in #10257
- Bump actions/attest-build-provenance from 2.1.0 to 2.2.0 by @dependabot in #10300
- Bump google.golang.org/protobuf from 1.36.3 to 1.36.4 by @dependabot in #10306
- Upgrade sigstore-go to v0.7.0: fixes #10114 formatting issue by @codysoyland in #10309
- Bump github.com/in-toto/attestation from 1.1.0 to 1.1.1 by @dependabot in #10319
New Contributors
Big thank you to our many new and longtime contributors making this release happen!! ❤️ ✨
- @zhuhaicity made their first contribution in #10225
- @danochoa made their first contribution in #10154
- @robmorgan made their first contribution in #10265
- @iamrajhans made their first contribution in #10227
- @AMS21 made their first contribution in #10236
- @petercover made their first contribution in #10296
- @ottok made their first contribution in #10151
- @dennisameling made their first contribution in #10297
- @iamazeem made their first contribution in #10323
- @Frederick888 made their first contribution in #9208
Full Changelog: v2.65.0...v2.66.0
GitHub CLI 2.27.0-pre0
What's Changed
- feat: add command
gh run delete
by @phillippbertram in #7254 - Fix codespaces invoker immediately closing by @cmbrose in #7284
- fix: add R as shorthand of
--repo
for search subcommands by @kkocha in #7274
New Contributors
- @phillippbertram made their first contribution in #7254
Full Changelog: v2.26.1...v2.27.0-pre0
GitHub CLI 2.26.1-pre0
What's Changed
Full Changelog: v2.26.0...v2.26.1-pre0
GitHub CLI 2.26.0-pre0
What's Changed
- Bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18 by @dependabot in #7217
- Properly handle closing files that have been writen to by @samcoe in #7199
- feat: gist rename by @wingkwong in #7212
- Added apt update command to linux install docs. by @srgk26 in #7186
- docs: revise GH_CONFIG_DIR content in help_topic.go by @wingkwong in #7230
- add a
--fail-fast
option topr checks --watch
by @benjlevesque in #7203 - Add
--template
for issue and PR by @guerinoni in #7185 - Feature(Fixes #7229) : Refine the Makefile file so that it can do the basic work by @cubxxw in #7228
- feat: gh run view --attempt by @wingkwong in #7232
- fix: throw error for non-existing org / repo with non-zero status in repo list by @wingkwong in #7240
- issue-6910 clearer message with actionable hint for repo sync by @macmacbr in #7110
- Autocomplete branch flags by @bchadwic in #6031
- Fix typo in README.md by @SonicGDX in #7244
- Retry fetching repo from template by @heaths in #7080
- repo list: add test for invalid owner error by @mislav in #7241
- feat: allow filtering workflow runs by status by @alex-petrov-vt in #7249
- Improve Amazon Linux install instructions by @mislav in #7252
- Check SSH key existence before uploading by @vaindil in #7246
- docs: add commit SHA arg to gh browse help by @kkocha in #7267
- Additional help doc and example for auth setup-git by @kkocha in #7243
- fix: make number arg, commit arg, and flags mutually exclusive by @kkocha in #7268
- secure storage by default by @vilmibm in #7276
New Contributors
- @wingkwong made their first contribution in #7212
- @srgk26 made their first contribution in #7186
- @cubxxw made their first contribution in #7228
- @macmacbr made their first contribution in #7110
- @SonicGDX made their first contribution in #7244
- @vaindil made their first contribution in #7246
- @kkocha made their first contribution in #7267
Full Changelog: v2.25.1...v2.26.0-pre0
GitHub CLI 2.25.0-pre0
What's New
- New suit of commands for working with Repository and Organization variables
ext install
: Introduce new--force
flag by @heaths in #7173
What's Changed
browse
: Improve documentation and consistency of the--commit
flag by @alex-petrov-vt in #7105repo sync
: Ensure git fetch is always authenticated by @samcoe in #7139repo delete
: Don't delete repos that have transfered ownership by @samcoe in #7106auth
: Skip searching keyring when checking for environment tokens by @benjlevesque in #7169auth refresh
: Improve documentation of--scopes
flag behavior by @alex-petrov-vt in #7132pr status
: Hide "current branch" when using--repo
flag by @jtpetty in #7180repo archive
: Change to use Prompter package by @Ruminateer in #7083search
: Fix multiword keyword quoting by @samcoe in #7170- Replace deprecated command with environment file by @jongwooo in #7195
- New prompt testing utility by @vilmibm in #7116
- Use transform.Transformer interface for ascii sanitization by @samcoe in #7117
- Only replace control sequences by @samcoe in #7168
- Tech debt cleanup for variable and secret commands by @samcoe in #7151
- Bump actions/setup-go from 3 to 4 by @dependabot in #7177
New Contributors
- @atirikt made their first contribution in #6928
- @jtpetty made their first contribution in #7180
- @jongwooo made their first contribution in #7195
Full Changelog: v2.24.3...v2.25.0-pre0
GitHub CLI 2.23.0-pre1
What's Changed
- Use int64 repository IDs for Codespaces user secrets by @joshmgross in #6923
- Change uint8 to uint64 to hold job with more than 255 run attempts by @samcoe in #6935
- Special case setting dependabot org secrets by @samcoe in #6941
- Sanitize ANSII control characters returned from the server by @samcoe in #6916
- Bump github.com/cli/oauth from 1.0.0 to 1.0.1 by @dependabot in #6948
- gh ext browse followup by @vilmibm in #6584
- Fix adding/removing projects using flags for edit commands by @samcoe in #6955
- Bump microsoft/setup-msbuild from 1.1.3 to 1.3.1 by @dependabot in #6973
- Fix panic by switching to use append in ASCII sanitization by @samcoe in #6956
- secret set: enable multiline values when reading from .env file by @mislav in #6932
- GH_DEBUG: fix api logging corrupting response bodies by @mislav in #6976
- Support Fork with Default Branch Only by @jsoref in #6983
- Disable gh update checker in our precompiled binaries by @mislav in #6977
- Default to authenticated user on codespace delete by @luanzeba in #6944
- Disallow update checker delaying the gh process by @mislav in #6978
- Teach gh cs create to use current repo as default by @rneatherway in #6596
- Avoid implicitly fetching when adding a new git remote by @mislav in #6990
- Add visibility warning by @samcoe in #6980
- Fix set-default interactive not showing all remotes by @despreston in #6969
Full Changelog: v2.22.1...v2.23.0-pre1
GitHub CLI 2.21.3-pre.0
What's Changed
- Fix typo in has_uncommitted_changes for codespaces by @jkeech in #6812
- Create centralized Codespaces RPC invoker by @dmgardiner25 in #6657
- avoid panic when bad default given to Select by @vilmibm in #6831
New Contributors
Full Changelog: v2.21.2...v2.21.3-pre.0
GitHub CLI 2.21.2-pre0
What's Changed
- docs: update codespace installation instructions by @levenleven in #6781
- Bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17 by @dependabot in #6794
- Bump github.com/gdamore/tcell/v2 from 2.5.3 to 2.5.4 by @dependabot in #6798
- Handle erase operation in auth git-credential command by @samcoe in #6805
- select base repo correctly when only one remote by @vilmibm in #6803
New Contributors
- @levenleven made their first contribution in #6781
Full Changelog: v2.21.1...v2.21.2-pre0
GitHub CLI 2.21.0-pre.5
Full Changelog: v2.21.0-pre.3...v2.21.0-pre.5