GitHub CLI 2.88.0
ghgh 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
gh issue close --duplicate-ofYou 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
gh agent-taskgh 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'
gh pr create: login-based reviewer requests and search-based interactive selection by @BagToad in https://github.com/cli/cli/pull/12627gh pr view and gh issue view: show friendly display names for all actors by @BagToad in https://github.com/cli/cli/pull/12854gh issue close: add --duplicate-of flag and duplicate reason by @tksohishi in https://github.com/cli/cli/pull/12811gh pr diff: add --exclude flag to filter files from diff output by @yuvrajangadsingh in https://github.com/cli/cli/pull/12655gh pr view/list: add changeType field to files JSON output by @yuvrajangadsingh in https://github.com/cli/cli/pull/12657gh repo clone: add --no-upstream flag by @4RH1T3CT0R7 in https://github.com/cli/cli/pull/12686gh repo edit: add --squash-merge-commit-message flag by @yuvrajangadsingh in https://github.com/cli/cli/pull/12846gh browse: add --blame flag by @masonmcelvain in https://github.com/cli/cli/pull/11486gh agent-task list: add --json support by @maxbeizer in https://github.com/cli/cli/pull/12806gh agent-task view: add --json support by @maxbeizer in https://github.com/cli/cli/pull/12807gh copilot: set COPILOT_GH env var when launching Copilot CLI by @devm33 in https://github.com/cli/cli/pull/12821gh project item-edit error when editing Draft Issue with only one (--title/--body) flag by @ManManavadaria in https://github.com/cli/cli/pull/12787owner/repo by @Copilot in https://github.com/cli/cli/pull/12836databaseId always being 0 in --json output by @srt32 in https://github.com/cli/cli/pull/12783--remote flag used with repo argument by @majiayu000 in https://github.com/cli/cli/pull/12375gh issue view --comments by @VishnuVV27 in https://github.com/cli/cli/pull/12652gh issue list by @LouisLau-art in https://github.com/cli/cli/pull/12623.git/config corruption on repeated issue develop --name invocation by @gunadhya in https://github.com/cli/cli/pull/12651gh issue close help text by @BagToad in https://github.com/cli/cli/pull/12830prefix in Makefile by @scarf005 in https://github.com/cli/cli/pull/11714api/client.go and project queries by @yuvrajangadsingh in https://github.com/cli/cli/pull/12845StateReason and StateReasonDuplicate feature detection by @BagToad in https://github.com/cli/cli/pull/12838Full Changelog: https://github.com/cli/cli/compare/v2.87.3...v2.88.0
Fetched April 8, 2026