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