8000 Releases · cli/cli · GitHub
[go: up one dir, main page]

Skip to content

Releases: cli/cli

GitHub CLI 2.88.1

12 Mar 12:24
37800dd

Choose a tag to compare

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
  • 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

10 Mar 19:40
e8cc7f9

Choose a tag to compare

:copilot: Request Copilot Code Review from gh

image

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

🐛 Fixes

  • Fix gh project item-edit error 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/repo by @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 databaseId always being 0 in --json output by @srt32 in #12783
  • Fix error when --remote flag used with repo argument by @majiayu000 in #12375
  • Fix redundant API call in gh issue view --comments by @VishnuVV27 in #12652
  • Clarify scope error while creating issues for projects by @elijahthis in #12596
  • Reject pull request-only search qualifiers in gh issue list by @LouisLau-art in #12623
  • Prevent .git/config corruption on repeated issue develop --name invocation 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

:dependabot: 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

Full Changelog: v2.87.3...v2.88.0

GitHub CLI 2.87.3

23 Feb 19:12
cf862d6

Choose a tag to compare

What's Changed

Full Changelog: v2.87.2...v2.87.3

GitHub CLI 2.87.2

20 Feb 20:30
6c3e39f

Choose a tag to compare

ℹ️ 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

20 Feb 18:47
9e82fc2

Choose a tag to compare

⚠️ 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

Full Changelog: v2.87.0...v2.87.1

GitHub CLI 2.87.0

18 Feb 17:19
7ea88b1

Choose a tag to compare

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

:copilot: 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

📚 Docs & Chores

:dependabot: 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/oauth to v1.2.2 by @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

Full Changelog: v2.86.0...v2.87.0

GitHub CLI 2.86.0

21 Jan 18:07
49f7223

Choose a tag to compare

:copilot: 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 copilot will prompt to install, then run Copilot CLI
  • gh 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 native copilot command to execute/install copilot cli by @devm33 in #12444
  • gh cache delete: allow for delete all caches for a ref by @davidspek in #12101
  • gh pr create: error when head and base refs are identical in pr create by @majiayu000 in #12376

📚 Docs & Chores

New Contributors

Full Changelog: v2.85.0...v2.86.0

GitHub CLI 2.85.0

14 Jan 18:44
559e729

Choose a tag to compare

What's Changed

✨ Features

🐛 Fixes

📚 Docs & Chores

:dependabot: 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

Full Changelog: v2.83.2...v2.85.0

GitHub CLI 2.83.2

10 Dec 16:56

Choose a tag to compare

What's Changed

🐛 Fixes

  • Isolate user-provided search query from contextual qualifiers by @babakks in #12170

📚 Docs & Chores

:dependabot: 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

Full Changelog: v2.83.1...v2.83.2

GitHub CLI 2.83.1

13 Nov 17:11
680a8c4

Choose a tag to compare

What's Changed

🐛 Fixes

  • gh pr edit: Ensure empty arrays for reviewers in PR API calls by @BagToad in #12122

📚 Docs & Chores

:dependabot: 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

0