usage

GitHub CLI 2.82.0

Tools and page contents
On this page

New 1

01

gh pr edit no longer fetches your org's whole team list just to add a reviewer

You use gh pr edit to set reviewers on a PR — a pull request, the code change you've submitted and are waiting on someone to review before it merges. Add just one person, not a team, and until now the command would still go fetch your entire org's team list first, whether you needed it or not. ⟦It's like visiting an archive: you only pull a specific record when you actually need it, you don't flip through the whole archive every time you walk in the door.⟧ Now gh pr edit only fetches that list when you're actually naming a team as a reviewer, and skips the step the rest of the time. For you, that means adding a single person as a reviewer no longer gets slowed down by a team lookup you never needed.

Original changelog

gh pr edit: Only fetch org teams for reviewers when required by @BagToad in https://github.com/cli/cli/pull/11835

Fixed 1

02

Cache delete counts, the spinner, task-dispatch repo, and login — four small fixes at once

These are the kind of small bugs you'd never notice unless you hit them directly. When you clear the cache — results stored earlier so you don't have to recompute them — gh cache delete used to report the wrong number of deleted entries; now the count is right whether you pass just a key or a key plus a ref, the git reference marking which branch a cache entry belongs to. Run gh agent-task create with --follow to watch progress, and the spinner used to keep spinning after the run finished; now it stops right when the task does. That same command used to sometimes dispatch work to the upstream repo — the repo yours was forked from — instead of your configured default repo; now it goes to the right one. And auth login and auth refresh now talk over a UNIX socket instead of the network. ⟦It's like the handful of things you only notice after you've finished moving house: you miscounted the boxes, forgot to turn off the hallway light, a letter still went to the old address, and the phone line never got hooked up to the new jack — this round cleans up all four.⟧

Original changelog

fix(cache delete): report correct deleted count for key and key+ref deletions by @luxass in https://github.com/cli/cli/pull/11838

gh agent-task create: Fix --follow not killing the progress indicator by @BagToad in https://github.com/cli/cli/pull/11879

gh agent-task create: Fix targetting upstream instead of default repo by @BagToad in https://github.com/cli/cli/pull/11896

Fix auth login and auth refresh to use UNIX socket by @babakks in https://github.com/cli/cli/pull/11922