This is a large release seeing a few major new features and a slew of fixes. In January we spent a week cleaning out the backlog of community pull requests -- thank you for your patience as we got all that merged!
New Commands
Edit Issues and Pull Requests
gh issue edit
and gh pr edit
allow you to modify existing issues and pull requests. Both versions accept arguments to edit non-interactively and running without flags allows you to interactively edit. (#2915, #2940, #2949)
SSH Key Management
gh ssh-key list
and gh ssh-key add
are now live! You'll be prompted to refresh your auth token with increased scopes to use them. (#2990)
Issue Deletion
Issues can now be permanently deleted with gh issue delete
(#2839)
New Features
PR Auto-Merge Support
pr merge
now supports --auto
. Instead of merging the pull request right away, the pull request will be automatically met once all requirements are met (#2980)
SSH Key Generation During Authentication
While running through the gh auth login
flow, gh
can now generate and upload SSH keys to GitHub on your behalf (#2892)
@me Syntax for Self Assigning Issues
When using gh issue create
, the string @me
can be used to self assign (#2004)
pr checkout Improvements
pr checkout
now supports --force
to force a checkout (#1953) and --detach
to checkout a pull request in a detached head state (#2117)
And More
repo fork
: support git flags (#2282)pr merge
: edit commit body when merging (#2980, #2810)pr merge
: alert about unpushed commits (#2255)gist view
:--files
lists filenames in a gist (#2898)- Configuration path can now come from environment (#2444)
- Display upgrade notice for brew users (#2929)
- Show whether or not branches are up to date with the default branch in
gh pr status
(#2952, #2988) - Show progress while creating a new pull request (#2808)
Fixes
- Minimized comments no longer appear in comment lists (#2859)
- Issue
and Pull Requesttemplates are now listed as per the API and not local file system (#2539) - Gist description dropped from single file raw view (#2888)
- Restore fork rename behavior (#2825)
- Clarify handling of git tags during release create (#2910)
- Explain how to link an issue in pr create (#2909)
- Improve repo create docs (#2908)
- Add more examples to api docs (#2951)
- Only fetch default branch when adding upstream remote (#2588)
- Consistently use success icon (#2799)
write:org
scope is now recognized as satisfyingread:org
(#2965)pr merge
: do not show invalid merge methods (#2224)pr merge
: avoid prompting to enter editor after editing phase is chosen (#2989)repo create
: clarify prompt (#2962)gist
: print friendly error when missing required argument (#2664)auth status
: add fail message for non-existent hostname (#2785)config
: refactor to use os.UserHomeDir() (#2740)issue create
andpr create
: project argument works alongside--web
now (#2108)secret set
: fix secret set --repos for repositories that have dashes #2844
Development Changes
createrepo
is now run via docker until Ubuntu repackages it (#2856)- Display output of build commands (#2926)
- Deprecate run.SetPrepareCmd (#2858)
- Deprecate test package (#2801, #2803, #2828)
- Freeze time in issue view test (#2843)
As always, a huge thank you to our contributors and users!
Have a good one~