Skip to content

GitHub CLI 2.3.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 18:04
· 5901 commits to trunk since this release
94a640b

Hello and welcome back to the command line. This is a doozy of a release, so strap in.

Precompiled extensions

We've made a significant change to gh's extension system. Now, extension authors can work in a precompiled language like Go and ship pre-compiled binaries of their extensions via release assets.

For a full tour of this new support, check out our demo video.

We've added scaffolding and helpers to make it a first class experience when working in Go, though of course any compiled binaries will work just fine as long as they are uploaded to a release with the expected naming scheme.

To assist with releasing precompiled extensions (Go or otherwise), we've created an action that helps automates the building and release process.

To get started, run gh extension create.

go-gh

We've open sourced a small Go library called go-gh. Its goal is to make it easer for extension authors to take advantage of some gh features directly in Go code. Check out the repository to learn more or watch the precompiled extension demo.

New repo create interface

The gh repo create command now has distinct usages for creating a repository from scratch and creating one from a local git repository.

Create a new repository on GitHub from scratch and clone it locally with

$ gh repo create myrepo --public --clone

Upload an existing local repository with

$ gh repo create myrepo --source=path/to/repo --public

Breaking Changes:

  • gh repo create will no longer automatically add a git remote to the local git repository in the current directory. To emulate old behavior when inside a local git repository, use gh pr create --source ..
  • gh repo create will only prompt interactively when run with no arguments. Otherwise, all arguments should be passed explicitly.

For more information, see gh help repo create.

Codespaces updates

  • Fix codespace code command under WSL by @mislav in #4747
  • Inherit API endpoint configuration from the Codespaces environment by @marwan-at-work in #4723
  • Remove the default value from idle-timeout by @reybard in #4756
  • Support listing and removing user Codespaces secrets by @joshmgross in #4714
  • Support setting user Codespaces secrets by @joshmgross in #4699
  • Add idle_timeout_minutes as possible cs create param by @reybard in #4741
  • Adds a timeout context to the ssh waiter to prevent indefinite hanging by @reybard in #4635
  • Rename errors from Live Share to generic codespace by @josebalius in #4705
  • Add prebuild availability status to create codespaces by @adnamalin in #4737

Other new features

Bugfixes

Docs, developer, and performance improvements

New Contributors

Full Changelog: v2.2.0...v2.3.0