Releases: cli/cli
GitHub CLI 2.88.1
Fix pr commands failing with read:project scope error
v2.88.0 introduced a regression where pr commands would fail with the error:
error: your authentication token is missing required scopes [read:project]
To request it, run: gh auth refresh -s read:project
Previously, missing read:project scope was gracefully handled, and project data was silently skipped. A change inadvertently broke the error matching that enabled this graceful degradation. v2.88.1 reverts these changes so that pr commands work correctly without requiring the read:project scope.
What's Changed
- Migrate Windows code signing from client secret to OIDC by @BagToad in #12911 8000 li>
- Revert "refactor: deduplicate scope error handling between api/client.go and project queries" by @williammartin in #12914
- Revert "fix: clarify scope error while creating issues for projects" by @williammartin in #12915
Full Changelog: v2.88.0...v2.88.1
GitHub CLI 2.88.0
Request Copilot Code Review from gh
gh pr create and gh pr edit now support Copilot Code Review as a reviewer. Request a review with --add-reviewer @copilot, or select Copilot interactively from the searchable reviewer prompt.
Create a pull request and request review from Copilot:
gh pr create --reviewer @copilot
Edit a pull request and request review from Copilot:
gh pr edit --add-reviewer @copilot
Close issues as duplicates with gh issue close --duplicate-of
You can now close issues as duplicates and link to a duplicate issue directly from the CLI. The new --duplicate-of flag accepts an issue number or URL and marks the closed issue as a duplicate of the referenced one. You can also use --reason duplicate to set the close reason without linking a specific issue.
# Close as duplicate, linking to the original issue
gh issue close 123 --duplicate-of 456
# Close with duplicate reason only
gh issue close 123 --reason duplicate
JSON support for gh agent-task
gh agent-task list and gh agent-task view now support --json, --jq, and --template flags, consistent with other gh commands.
gh agent-task list --json id,name,state
gh agent-task view <id> --json state --jq '.state'
What's Changed
✨ Features
gh pr create: login-based reviewer requests and search-based interactive selection by @BagToad in #12627gh pr viewandgh issue view: show friendly display names for all actors by @BagToad in #12854gh issue close: add--duplicate-offlag and duplicate reason by @tksohishi in #12811gh pr diff: add--excludeflag to filter files from diff output by @yuvrajangadsingh in #12655gh pr view/list: addchangeTypefield to files JSON output by @yuvrajangadsingh in #12657gh repo clone: add--no-upstreamflag by @4RH1T3CT0R7 in #12686gh repo edit: add--squash-merge-commit-messageflag by @yuvrajangadsingh in #12846gh browse: add--blameflag by @masonmcelvain in #11486gh agent-task list: add--jsonsupport by @maxbeizer in #12806gh agent-task view: add--jsonsupport by @maxbeizer in #12807gh copilot: setCOPILOT_GHenv var when launching Copilot CLI by @devm33 in #12821
🐛 Fixes
- Fix
gh project item-editerror when editing Draft Issue with only one (--title/--body) flag by @ManManavadaria in #12787 - Fix extension install error message showing raw struct instead of
owner/repoby @Copilot in #12836 - Fix incorrect integer conversion from int to uint16 in port forwarder by @BagToad in #12831
- Fix invalid ANSI SGR escape code in JSON and diff colorization by @BagToad in #12720
- Fix assignees
databaseIdalways being0in--jsonoutput by @srt32 in #12783 - Fix error when
--remoteflag used with repo argument by @majiayu000 in #12375 - Fix redundant API call in
gh issue view --commentsby @VishnuVV27 in #12652 - Clarify scope error while creating issues for projects by @elijahthis in #12596
- Reject pull request-only search qualifiers in
gh issue listby @LouisLau-art in #12623 - Prevent
.git/configcorruption on repeatedissue develop --nameinvocation by @gunadhya in #12651 - Use pre-compiled regexp for matching Content-Type by @itchyny in #12781
- Isolate generated licenses per platform (os/arch) by @babakks in #12774
📚 Docs & Chores
- Add examples to
gh issue closehelp text by @BagToad in #12830 - Customizable install
prefixin Makefile by @scarf005 in #11714 - Deduplicate scope error handling between
api/client.goand project queries by @yuvrajangadsingh in #12845 - Remove unnecessary
StateReasonandStateReasonDuplicatefeature detection by @BagToad in #12838 - Update Go version requirement to 1.26+ by @BagToad in #12864
- Add monthly pitch surfacing workflow by @tidy-dev in #12894
Dependencies
- Bump Go from 1.25.7 to 1.26.1 by @BagToad in #12860
- chore(deps): bump golang.org/x/sync from 0.19.0 to 0.20.0 by @dependabot[bot] in #12886
- chore(deps): bump google.golang.org/grpc from 1.79.1 to 1.79.2 by @dependabot[bot] in #12851
- chore(deps): bump github.com/docker/cli from 29.0.3+incompatible to 29.2.0+incompatible by @dependabot[bot] in #12842
- chore(deps): bump google.golang.org/grpc from 1.78.0 to 1.79.1 by @dependabot[bot] in #12759
- chore(deps): bump goreleaser/goreleaser-action from 6.4.0 to 7.0.0 by @dependabot[bot] in #12760
- chore(deps): bump actions/upload-artifact from 6 to 7 by @dependabot[bot] in #12797
- chore(deps): bump actions/download-artifact from 7 to 8 by @dependabot[bot] in #12796
- chore(deps): bump actions/attest-build-provenance from 3.2.0 to 4.1.0 by @dependabot[bot] in #12795
- chore(deps): bump github.com/gabriel-vasile/mimetype from 1.4.11 to 1.4.13 by @dependabot[bot] in #12615
New Contributors
- @srt32 made their first contribution in #12783
- @itchyny made their first contribution in #12781
- @VishnuVV27 made their first contribution in #12652
- @elijahthis made their first contribution in #12596
- @ManManavadaria made their first contribution in #12787
- @maxbeizer made their first contribution in #12806
- @LouisLau-art made their first contribution in #12623
- @4RH1T3CT0R7 made their first contribution in #12686
- @yuvrajangadsingh made their first contribution in #12657
- @masonmcelvain made their first contribution in #11486
- @scarf005 made their first contribution in #11714
- @tksohishi made their first contribution in #12811
- @tidy-dev made their first contribution in #12894
Full Changelog: v2.87.3...v2.88.0
GitHub CLI 2.87.3
What's Changed
- Fix project mutation query variable usage by @williammartin in #12757
Full Changelog: v2.87.2...v2.87.3
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