Releases: cli/cli
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
GitHub CLI 2.83.0
What's Changed
✨ Features
- Add
isImmutabletorelease listJSON output by @babakks in #12064 gh agent-task create: support--custom-agent/-aflag by @BagToad in #12068- 💡 (gh repo delete) Add warning when
--yesis ignored without a repository, Closes: #12033 by @Shion1305 in #12039 - feat: implement gh
pr revertby @lucasmelin in #8826
🐛 Fixes
- fix(gist): add support for editing & viewing large files by @luxass in #11761
- Fix gh attestation verify to work when Public Good Instance of Sigstore is unavailable by @Copilot in #11989
📚 Docs & Chores
- chore: add basic linters by @babakks in #12084
- CI: Update lint govulncheck to use source mode by @BagToad in #12089
- chore: add
workflow_dispatchto govulncheck triggers by @babakks in #12085 - Exclude
third-partyfrom Golangci-lint formatting paths by @babakks in #12058 - Apply
go fixto remove deprecated// +buildtags by @babakks in #12056 - Bump Golangci-lint to
v2.6.0by @babakks in #12049 - Mention
pr checksinrun listdocs by @babakks in #12050 - Fix typo in comment for
gh issue developbranch checkout command by @jonzfisher in #12042 - Use "release" sentinel value for release attestation verification by @Copilot in #11991
- Improve docstring for release-create by @bdehamer in #11945
- Improve
apicommand docs around--inputand--fieldby @babakks in #12062 - Fix
--intervalflags docs ingh pr checksby @2003Aditya in #12053
Dependencies
- Bump Go to 1.25.3 by @github-actions[bot] in #11926
- chore(deps): bump github.com/cli/go-gh/v2 from 2.12.2 to 2.13.0 by @dependabot[bot] in #12095
- Update Go toolchain version to 1.24.9 by @BagToad in #12054
- chore(deps): bump golang.org/x/text from 0.29.0 to 0.30.0 by @dependabot[bot] in #11973
- chore(deps): bump golang.org/x/crypto from 0.42.0 to 0.43.0 by @dependabot[bot] in #11974
- chore(deps): bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in #12031
- chore(deps): bump actions/download-artifact from 5 to 6 by @dependabot[bot] in #12032
- chore(deps): bump github.com/rivo/tview from 0.0.0-20250625164341-a4a78f1e05cb to 0.42.0 by @dependabot[bot] in #12000
- chore(deps): bump goreleaser/goreleaser-action from 6.3.0 to 6.4.0 by @dependabot[bot] in #11509
- chore(deps): bump mislav/bump-homebrew-formula-action from 3.4 to 3.6 by @dependabot[bot] in #11750
New Contributors
- @lucasmelin made their first contribution in #8826
- @jonzfisher made their first contribution in #12042
- @2003Aditya made their first contribution in #12053
Full Changelog: v2.82.1...v2.83.0
GitHub CLI 2.82.1
Fix gh pr edit not detecting classic projects feature deprecation
gh pr edit was not correctly detecting the classic projects API deprecation. This release fixes that detection and avoids an incorrect fetch to the deprecated APIs.
This only impacted gh pr edit commands used to add or remove projects.
What's Changed
🐛 Fixes
Dependencies
- chore(deps): bump github/codeql-action from 3 to 4 by @dependabot[bot] in #11881
- chore(deps): Bump github.com/sigstore/sigstore-go from 1.1.0 to 1.1.3 by @dependabot[bot] in #11830
- chore(deps): bump github.com/gabriel-vasile/mimetype from 1.4.9 to 1.4.10 by @dependabot[bot] in #11659
- chore(deps): bump actions/attest-build-provenance from 2.4.0 to 3.0.0 by @dependabot[bot] in #11612
Full Changelog: v2.82.0...v2.82.1
GitHub CLI 2.82.0
✨ Features
🐛 Fixes
- fix(cache delete): report correct deleted count for key and key+ref deletions by @luxass in #11838
gh agent-task create: Fix--follownot killing the progress indicator by @BagToad in #11879gh agent-task create: Fix targetting upstream instead of default repo by @BagToad in #11896- Fix
auth loginandauth refreshto use UNIX socket by @babakks in #11922
Full Changelog: v2.81.0...v2.82.0
GitHub CLI 2.81.0
Support for GitHub Release Attestations
This release introduces the release verify and release verify-asset commands for verifying GitHub Release attestations. Part of the Immutable Releases initiative, a release attestation provides a signed, timestamped binding between a release, its git tag, and any associated assets. These new commands provide a convenient way to verify the integrity of an immutable release against its attestation.
- Verify the latest release has a valid attestation:
gh release verify - Verify a specific release by tag:
gh release verify v1.2.3 - Verify an asset from the latest release:
gh release verify-asset my-asset.zip - Verify a local asset file originated from a specific release:
gh release verify-asset v1.2.3 my-asset.zip
These commands help ensure that releases and their assets are authentic and haven’t been tampered with, providing an additional layer of security for your software supply chain.
gh auth status Supports JSON Output
This release adds support for the --json flag in gh auth status. Run gh auth status --help for more information and usage examples.
What's Changed
✨ Features
- Add alias
coforpr checkoutby @babakks in #11804 - Add JSON output to
gh auth statusby @benjlevesque in #11544 release verifyandrelease verify-assetare now visible by @ejahnGithub in #11801
🐛 Fixes
- Fix no tagname logic for release verify-asset by @ejahnGithub in #11798
📚 Docs & Chores
- refactor: use strings.FieldsFuncSeq to reduce memory allocations by @juejinyuxitu in #11805
New Contributors
- @juejinyuxitu made their first contribution in #11805
Full Changelog: v2.80.0...v2.81.0
GitHub CLI 2.80.0
Manage GitHub Copilot Coding Agent From the GitHub CLI
This GitHub CLI release introduces the agent-task commandset for managing coding agent tasks in gh:
- Create tasks:
gh agent-task create "refactor the codebase" - List all your tasks:
gh agent-task list - View task details:
gh agent-task view 1234 - View the task log in real-time:
gh agent-task view 1234 --log --follow
For more information about command line flags and arguments, run gh agent-task <command> --help.
The agent-task commandset also ships with the following aliases for convenience:
gh agent-tasksgh agentgh agents
ℹ️ The agent-task commandset is in preview and is subject to change without notice.
Got feedback? Let us know what you like or don't like in an issue ❤️
What's Changed
✨ Features
🐛 Fixes
Full Changelog: v2.79.0...v2.80.0
GitHub CLI 2.79.0
Advanced Issue Search Support
The GitHub CLI now supports advanced issue search syntax using:
- Searching issues:
gh search issues <advanced issue search query> - Searching pull requests:
gh search prs <advanced issue search query> - While listing issues:
gh issue list --search <advanced issue search query> - While listing pull requests:
gh pr list --search <advanced issue search query>
For more information about advanced issue search syntax, see: "Filtering and Searching Issues and Pull Requests"
Copy OAuth Code Automatically
The GitHub CLI now supports writing the OAuth one-time pass code to the clipboard automatically during authentication:
- While logging in:
gh auth login --clipboard/gh auth login -c - While refreshing the token:
gh auth refresh --clipboard/gh auth refresh -c
What's Changed
✨ Features
- feat:
gh authAutomatically copy one-time OAuth code to clipboard by @ankddev in #11518 - feat: add support for
--refingh cache deleteby @luxass in #11592 - Use advanced issue search by @babakks in #11638
📚 Docs & Chores
- docs(release create): difference
--generate-notesand--notes-from-tagby @ankddev in #11534 - refactor tests: use
slices.Equalto simplify code by @minxinyi in #11364 - Remove mention of public preview in trustedroot.go by @jkylekelly in #11652
Dependencies
- Bump sigstore/rekor to v1.4.1 by @BagToad in #11654
- chore(deps): bump actions/stale from 9 to 10 by @dependabot[bot] in #11663
- chore(deps): bump actions/setup-go from 5 to 6 by @dependabot[bot] in #11662
New Contributors
- @minxinyi made their first contribution in #11364
- @jkylekelly made their first contribution in #11652
- @luxass made their first contribution in #11592
Full Changelog: v2.78.0...v2.79.0
GitHub CLI 2.78.0
ℹ️ Note
This release was cut primarily to resolve a Linux package distribution issue. We recommend reviewing the v2.77.0 release notes for the complete set of latest features and fixes.
What's Changed
✨ Features
🐛 Fixes
- Fix failing to release Linux packages (affected v2.77.0). See v2.77.0 for more information.
Full Changelog: v2.77.0...v2.78.0
GitHub CLI 2.77.0
⚠️ Incomplete Release
The v2.77.0 release experienced a failure publishing to our official Linux repos. This is resolved in v2.78.0, so we recommend using that release instead.
What's Changed
✨ Features
- Report that v1 classic projects are detected on GHES 3.16.x or older by @andyfeller in #11491
- Display v2 projects in
gh issue viewby @andyfeller in #11496 - View v2 projects in
gh pr viewoutput by @andyfeller in #11497 - Ensure users can see v2 projects when viewing issues and PRs, avoid v1 projects on GHES 3.17 and newer by @andyfeller in #11514
🐛 Fixes
- fix error for ErrReleaseNotFound when fetching ref by @ejahnGithub in #11451
- add test for FetchRefSHA by @ejahnGithub in #11481
- Fix
gh repo delete --yessafety issue when no repository argument provided by @Copilot in #11536
📚 Docs & Chores
- Improve spam detection evals by @babakks in #11419
- Fix
help wantedlabel regexp in CI automation by @babakks in #11423 - Update spam detection to comment on and close issue by @andyfeller in #11435
- Adding a note to
gh searchdocs to explain the usage of--to exclude certain results by @Sukhpreet-s in #11162 - Update issue triage guidelines and label usage by @BagToad in #11454
- Reorganize installation docs by @andyfeller in #11473
- Update govulncheck workflow to scan source code by @BagToad in #11482
- Hidden trusted root flag for release verify by @ejahnGithub in #11511
Dependencies
- Regenerate third-party licenses on trunk pushes by @andyfeller in #11370
- Update third-party license versions by @BagToad in #11557
- Bump Go to 1.24.6 by @github-actions[bot] in #11467
- chore(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7 by @dependabot[bot] in #11319
- chore(deps): bump actions/download-artifact from 4 to 5 by @dependabot[bot] in #11458
- chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in #11490
- chore(deps): bump github.com/yuin/goldmark from 1.7.12 to 1.7.13 by @dependabot[bot] in #11368
- Bump google.golang.org/grpc & other required dependencies by @BagToad in #11510
- chore(deps): bump google.golang.org/grpc from 1.73.0 to 1.74.2 by @dependabot[bot] in #11367
- chore(deps): bump github.com/cli/go-gh/v2 from 2.12.1 to 2.12.2 by @dependabot[bot] in #11537
- chore(deps): bump github.com/go-viper/mapstructure/v2 from 2.3.0 to 2.4.0 by @dependabot[bot] in #11556
New Contributors
- @Sukhpreet-s made their first contribution in #11162
- @Copilot made their first contribution in #11536
Full Changelog: v2.76.2...v2.77.0
GitHub CLI 2.76.2
gh pr create regression fix
This release fixes a regression introduced in v2.76.1 where organization teams were not present in prompts for pull request reviewers. This caused problems in multiple commands:
- Interactive
gh pr createcould not select teams when adding pull request reviewers - Tab completions with
gh pr create --reviewerflag did not present a list of organization teams - Tab completions with
gh pr edit --add-reviewerflag did not present a list of organization teams - Tab completions with
gh pr edit --remove-reviewerflag did not present a list of organization teams
For more information, see #11403
What's Changed
🐛 Fixes
- Include org teams for PR reviewers by @andyfeller in #11407
📚 Docs & Chores
Full Changelog: v2.76.1...v2.76.2