Releases: cli/cli
GitHub CLI 2.87.2
ℹ️ Note
This release was cut primarily to resolve a publishing issue. We recommend reviewing the v2.87.1 release notes for the complete set of latest features and fixes.
What's Changed
- chore(deps): bump golang.org/x/crypto from 0.47.0 to 0.48.0 by @dependabot[bot] in #12659
Full Changelog: v2.87.1...v2.87.2
GitHub CLI 2.87.1
⚠️ Incomplete Release
The v2.87.1 release experienced a failure in our workflow and is not fully published to the designated package managers/repositories. This is resolved in v2.87.2, so we recommend using that release instead.
What's Changed
- Remove license bundling debris by @williammartin in #12716
- fix(agent-task/capi): use a fixed CAPI API version by @babakks in #12731
Full Changelog: v2.87.0...v2.87.1
GitHub CLI 2.87.0
gh workflow run immediately returns workflow run URL
One of our most requested features - with the latest changes in GitHub API, gh workflow run will immediately print the created workflow run URL.
Improved gh auth login experience in VM/WSL environments
We have observed rare cases of time drift between the wall and monotonic clocks, mostly in WSL or VM environments, causing failures during polling for the OAuth token. This new release implements measures to account for such situations.
If you continue to experience gh auth login issues in WSL, please comment in #9370
Request Copilot Code Review from gh + performance improvements
gh pr edit now supports Copilot Code Review as a reviewer. You can request a review from Copilot using the --add-reviewer @copilot flag or interactively by selecting reviewers in the prompts.
This release also introduces a new search experience for selecting reviewers and assignees in gh pr edit. Instead of loading all collaborators and teams upfront, results are now fetched based on inputs to a new search option. Initial options are suggestions based on those involved with the pull request already.
? Reviewers [Use arrows to move, space to select, <right> to all, <left> to none, type to filter]
[ ] Search (7472 more)
[x] BagToad (Kynan Ware)
> [x] Copilot (AI)
This experience will follow in gh pr create and gh issue for assignees in a later release.
What's Changed
✨ Features
- Bundle licenses at release time by @williammartin in #12625
- Add
--queryflag toproject item-listby @williammartin in #12696 - feat(workflow run): retrieve workflow dispatch run details by @babakks in #12695
- Pin REST API version to 2022-11-28 by @williammartin in #12680
- Respect
--exit-statuswith--logand--log-failedinrun viewby @williammartin in #12679 - Fork with default branch only during pr create by @williammartin in #12673
gh pr edit: Add support for Copilot as reviewer with search capability, performance and accessibility improvements by @BagToad in #12567gh pr edit: new interactive prompt for assignee selection, performance and accessibility improvements by @BagToad in #12526
📚 Docs & Chores
- Clean up project item-list query addition changes by @williammartin in #12714
gh release upload: Clarify--clobberflag deletes assets before re-uploading by @BagToad in #12711- Add usage examples to
gh gist editcommand by @BagToad in #12710 - Remove feedback issue template by @BagToad in #12708
- Migrate issue triage workflows to shared workflows by @BagToad in #12677
- Migrate PR triage workflows to shared workflows by @BagToad in #12707
- Add missing TODO comments for featuredetection if-statements by @BagToad in #12701
- Add manual dispatch to bump-go workflow by @BagToad in #12631
- typo: dont to don't by @cuiweixie in #12554
- Fix fmt.Errorf format argument in ParseFullReference by @mikelolasagasti in #12516
- Lint source.md by @Sethispr in #12521
Dependencies
- chore(deps): bump golang.org/x/text from 0.32.0 to 0.33.0 by @dependabot[bot] in #12468
- chore(deps): bump golang.org/x/term from 0.38.0 to 0.39.0 by @dependabot[bot] in #12616
- Bump go to 1.25.7 by @BagToad in #12630
- chore(deps): bump golang.org/x/crypto from 0.46.0 to 0.47.0 by @dependabot[bot] in #12629
- chore: bump
cli/oauthtov1.2.2by @babakks in #12573 - update Go to 1.25.6 by @BagToad in #12580
- chore(deps): bump actions/attest-build-provenance from 3.1.0 to 3.2.0 by @dependabot[bot] in #12558
- chore(deps): bump github.com/sigstore/rekor from 1.4.3 to 1.5.0 by @dependabot[bot] in #12524
- chore(deps): bump github.com/theupdateframework/go-tuf/v2 from 2.3.1 to 2.4.1 by @dependabot[bot] in #12555
- chore(deps): bump github.com/gdamore/tcell/v2 from 2.13.4 to 2.13.7 by @dependabot[bot] in #12469
- chore(deps): bump github.com/sigstore/sigstore from 1.10.0 to 1.10.4 by @dependabot[bot] in #12525
- chore(deps): bump github.com/theupdateframework/go-tuf/v2 from 2.3.0 to 2.3.1 by @dependabot[bot] in #12515
- chore(deps): bump actions/download-artifact from 6 to 7 by @dependabot[bot] in #12314
- chore(deps): bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in #12315
- chore(deps): bump goreleaser/goreleaser-action from 6.0.0 to 6.4.0 by @dependabot[bot] in #12354
New Contributors
- @Sethispr made their first contribution in #12521
- @cuiweixie made their first contribution in #12554
Full Changelog: v2.86.0...v2.87.0
GitHub CLI 2.86.0
Install and run GitHub Copilot CLI directly from gh
Since we deprecated the GitHub Copilot in the CLI extension in favor of the new agentic GitHub Copilot CLI, we want to give developers using gh a simple way to get started using our most powerful terminal assistant.
gh copilotwill prompt to install, then run Copilot CLIgh copilot <args>will execute the Copilot CLI, forwarding any arguments and flags
For more information and usage options, run gh copilot --help.
What's Changed
✨ Features
gh copilot: add nativecopilotcommand to execute/install copilot cli by @devm33 in #12444gh cache delete: allow for delete all caches for a ref by @davidspek in #12101gh pr create: error when head and base refs are identical in pr create by @majiayu000 in #12376
📚 Docs & Chores
- Fix Windows asset URL in
copilotcommand tests by @babakks in #12500 - Update contributing guidelines for clarity by @BagToad in #12505
New Contributors
- @devm33 made their first contribution in #12444
- @davidspek made their first contribution in #12101
Full Changelog: v2.85.0...v2.86.0
GitHub CLI 2.85.0
What's Changed
✨ Features
- Add gh browse --actions flag by @rneatherway in #12091
- feat: allow git remote names in gh repo set-default by @majiayu000 in #12377
🐛 Fixes
- Fix Debian CLI package link in installation guide by @andyfeller in #12291
- fix: prevent panic when processing null project items by @chrishenzie in #12324
📚 Docs & Chores
- chore: upgrade to
cli/oauth@v1.2.1by @babakks in #12337 - ci: upgrade to GoReleaser
v2by @babakks in #12318 - CI: Update Azure Code Signing client to 1.0.95 by @BagToad in #12424
- CI: Update Azure Code Signing endpoint URL by @BagToad in #12425
- ci: tag per build job by @babakks in #12428
- CI: Add shell specification for temporary tag creation on Windows by @BagToad in #12429
- Bump sigstore-go to v1.1.4 by @williammartin in #12289
- Update actions/checkout to v6 in extension workflow templates by @fchimpan in #12393
- ci: enable noop linters by @babakks in #12440
Dependencies
- chore(deps): bump golang.org/x/sync from 0.18.0 to 0.19.0 by @dependabot[bot] in #12274
- chore(deps): bump golang.org/x/text from 0.31.0 to 0.32.0 by @dependabot[bot] in #12281
- chore(deps): bump golang.org/x/term from 0.37.0 to 0.38.0 by @dependabot[bot] in #12282
- chore(deps): bump github.com/spf13/cobra from 1.10.1 to 1.10.2 by @dependabot[bot] in #12255
- chore(deps): bump github.com/gdamore/tcell/v2 from 2.13.1 to 2.13.2 by @dependabot[bot] in #12262
- chore(deps): bump golangci/golangci-lint-action from 9.1.0 to 9.2.0 by @dependabot[bot] in #12252
- chore(deps): bump github.com/gdamore/tcell/v2 from 2.13.2 to 2.13.4 by @dependabot[bot] in #12302
- chore(deps): bump golang.org/x/crypto from 0.45.0 to 0.46.0 by @dependabot[bot] in #12300
- chore(deps): bump actions/attest-build-provenance from 3.0.0 to 3.1.0 by @dependabot[bot] in #12339
- chore(deps): bump github.com/yuin/goldmark from 1.7.13 to 1.7.16 by @dependabot[bot] in #12452
New Contributors
- @chrishenzie made their first contribution in #12324
- @fchimpan made their first contribution in #12393
- @majiayu000 made their first contribution in #12377
Full Changelog: v2.83.2...v2.85.0
GitHub CLI 2.83.2
What's Changed
🐛 Fixes
📚 Docs & Chores
- Refactor cfg out of CAPI Client by @williammartin in #12148
- Remove extra flag default from help usage by @andyfeller in #12154
- Add PGP key rotation PoC by @babakks in #12176
- Add Debian/Ubuntu to unofficial packages by @andyfeller in #12191
- Error if go-licenses is not on the PATH by @williammartin in #12238
- refactor: drop multierror in favor of std by @ferhatelmas in #12234
Dependencies
- chore(deps): bump golang.org/x/crypto from 0.43.0 to 0.45.0 by @dependabot[bot] in #12165
- chore(deps): bump actions/checkout from 5 to 6 by @dependabot[bot] in #12178
- chore(deps): bump google.golang.org/protobuf from 1.36.9 to 1.36.10 by @dependabot[bot] in #12037
- chore(deps): bump golangci/golangci-lint-action from 9.0.0 to 9.1.0 by @dependabot[bot] in #12189
- chore(deps): bump github.com/theupdateframework/go-tuf/v2 from 2.2.0 to 2.3.0 by @dependabot[bot] in #12100
- chore(deps): bump github.com/gabriel-vasile/mimetype from 1.4.10 to 1.4.11 by @dependabot[bot] in #12051
- chore(deps): bump google.golang.org/grpc from 1.75.0 to 1.76.0 by @dependabot[bot] in #11972
- chore(deps): bump github.com/charmbracelet/huh from 0.7.0 to 0.8.0 by @dependabot[bot] in #11971
- Bump Go to 1.25.4 by @github-actions[bot] in #12104
- chore(deps): bump github.com/gdamore/tcell/v2 from 2.9.0 to 2.13.1 by @dependabot[bot] in #12246
- chore(deps): bump github.com/hashicorp/go-version from 1.7.0 to 1.8.0 by @dependabot[bot] in #12247
- chore(deps): bump github.com/google/go-containerregistry from 0.20.6 to 0.20.7 by @dependabot[bot] in #12245
- Bump Go to 1.25.5 by @github-actions[bot] in #12250
- Bump dev-tunnels SDK 0.1.13 to 0.1.19 by @sam-byng in #12285
New Contributors
- @ferhatelmas made their first contribution in #12234
- @sam-byng made their first contribution in #12285
Full Changelog: v2.83.1...v2.83.2
GitHub CLI 2.83.1
What's Changed
🐛 Fixes
📚 Docs & Chores
- Integrate license checks back into lint workflow by @BagToad in #12112
- Update third-party licenses and dependencies by @BagToad in #12123
Dependencies
- chore(deps): bump golangci/golangci-lint-action from 8.0.0 to 9.0.0 by @dependabot[bot] in #12134
Full Changelog: v2.83.0...v2.83.1
GitHub CLI 2.83.0
What's Changed
✨ Features
- Add
isImmutabletorelease listJSON output by @babakks in #12064 gh agent-task create: support--custom-agent/-aflag by @BagToad in #12068- 💡 (gh repo delete) Add warning when
--yesis ignored without a repository, Closes: #12033 by @Shion1305 in #12039 - feat: implement gh
pr revertby @lucasmelin in #8826
🐛 Fixes
- fix(gist): add support for editing & viewing large files by @luxass in #11761
- Fix gh attestation verify to work when Public Good Instance of Sigstore is unavailable by @Copilot in #11989
📚 Docs & Chores
- chore: add basic linters by @babakks in #12084
- CI: Update lint govulncheck to use source mode by @BagToad in #12089
- chore: add
workflow_dispatchto govulncheck triggers by @babakks in #12085 - Exclude
third-partyfrom Golangci-lint formatting paths by @babakks in #12058 - Apply
go fixto remove deprecated// +buildtags by @babakks in #12056 - Bump Golangci-lint to
v2.6.0by @babakks in #12049 - Mention
pr checksinrun listdocs by @babakks in #12050 - Fix typo in comment for
gh issue developbranch checkout command by @jonzfisher in #12042 - Use "release" sentinel value for release attestation verification by @Copilot in #11991
- Improve docstring for release-create by @bdehamer in #11945
- Improve
apicommand docs around--inputand--fieldby @babakks in #12062 - Fix
--intervalflags docs ingh pr checksby @2003Aditya in #12053
Dependencies
- Bump Go to 1.25.3 by @github-actions[bot] in #11926
- chore(deps): bump github.com/cli/go-gh/v2 from 2.12.2 to 2.13.0 by @dependabot[bot] in #12095
- Update Go toolchain version to 1.24.9 by @BagToad in #12054
- chore(deps): bump golang.org/x/text from 0.29.0 to 0.30.0 by @dependabot[bot] in #11973
- chore(deps): bump golang.org/x/crypto from 0.42.0 to 0.43.0 by @dependabot[bot] in #11974
- chore(deps): bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in #12031
- chore(deps): bump actions/download-artifact from 5 to 6 by @dependabot[bot] in #12032
- chore(deps): bump github.com/rivo/tview from 0.0.0-20250625164341-a4a78f1e05cb to 0.42.0 by @dependabot[bot] in #12000
- chore(deps): bump goreleaser/goreleaser-action from 6.3.0 to 6.4.0 by @dependabot[bot] in #11509
- chore(deps): bump mislav/bump-homebrew-formula-action from 3.4 to 3.6 by @dependabot[bot] in #11750
New Contributors
- @lucasmelin made their first contribution in #8826
- @jonzfisher made their first contribution in #12042
- @2003Aditya made their first contribution in #12053
Full Changelog: v2.82.1...v2.83.0
GitHub CLI 2.82.1
Fix gh pr edit not detecting classic projects feature deprecation
gh pr edit was not correctly detecting the classic projects API deprecation. This release fixes that detection and avoids an incorrect fetch to the deprecated APIs.
This only impacted gh pr edit commands used to add or remove projects.
What's Changed
🐛 Fixes
Dependencies
- chore(deps): bump github/codeql-action from 3 to 4 by @dependabot[bot] in #11881
- chore(deps): Bump github.com/sigstore/sigstore-go from 1.1.0 to 1.1.3 by @dependabot[bot] in #11830
- chore(deps): bump github.com/gabriel-vasile/mimetype from 1.4.9 to 1.4.10 by @dependabot[bot] in #11659
- chore(deps): bump actions/attest-build-provenance from 2.4.0 to 3.0.0 by @dependabot[bot] in #11612
Full Changelog: v2.82.0...v2.82.1
GitHub CLI 2.82.0
✨ Features
🐛 Fixes
- fix(cache delete): report correct deleted count for key and key+ref deletions by @luxass in #11838
gh agent-task create: Fix--follownot killing the progress indicator by @BagToad in #11879gh agent-task create: Fix targetting upstream instead of default repo by @BagToad in #11896- Fix
auth loginandauth refreshto use UNIX socket by @babakks in #11922
Full Changelog: v2.81.0...v2.82.0