github cli/cli v2.88.0
GitHub CLI 2.88.0

8 hours ago

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

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

Don't miss a new cli release

NewReleases is sending notifications on new releases.