Skip to content

Releases: github/gh-copilot

v1.0.5

12 Sep 20:37
Compare
Choose a tag to compare

Release notes for v1.0.5

Disable metrics opt-in prompt during gh copilot alias

Before v1.0.5, users who set up optional helpers would experience an issue due to our metrics opt-in prompt causing their shell to hang.

With v1.0.5, gh copilot alias will not prompt for metrics opt-in.

Fixes #40.

Improved Android 64-bit support

Though the GitHub CLI does not officially support Android, gh copilot was building and distributing 64-bit releases for ARM and AMD distributions. In the process of improving GitHub CLI extension publishing, concerns were raised whether the android-amd64 and android-arm64 worked as expected. We have done more extensive efforts to test these builds, supporting the Termux community where we can. 🫶

See cli/gh-extension-precompile#50 for more information.

v1.0.4

09 Jul 19:15
Compare
Choose a tag to compare

Release notes for v1.0.4

Improved network routing

GitHub Copilot in the CLI now supports improved client-server routing based on your GitHub Copilot plan.

For help troubleshooting connectivity problems, see "Troubleshooting network errors for GitHub Copilot".

v1.0.3

15 May 12:31
Compare
Choose a tag to compare

Release notes for v1.0.3

This patch release focuses on quality of life fixes impacting users:

Multi-account support

GitHub Copilot in the CLI now supports multi-account users using --hostname flag or GH_HOST environment variable to specify the GitHub hostname for commands that would otherwise assume the github.com host.

Improved exception reporting

In order to better identify recurring exceptions since GA, exception reporting now captures the following limited dimensions only if optional usage analytics is enabled:

  • GitHub host used (github.com)
  • operating system (darwin, linux, windows)
  • CPU architecture (386, amd64, arm64, arm)
  • build SHA (65174eb5689c8c6916d66d3948bd41c2c12284f7)

The GitHub Copilot in the CLI team wants thank our community for its trust to responsibly and transparently explain where and why usage metrics are gathered! 🙇

v1.0.2

29 Apr 14:31
Compare
Choose a tag to compare

Release notes for v1.0.2

While the GitHub Copilot in the CLI team reviews GA adoption and feedback, we wanted to address some quality of life fixes impacting users:

Enhance ghcs to work for Alpine Linux

ghcs uses a temporary directory with 3 placeholders required for BSD. This has been enhanced to use 6 placeholders needed for Alpine Linux.

For more information, see #66 with thanks to @cirolosapio!

Fix PowerShell instructions to avoid word splitting

For Windows users with spaces in PowerShell profile path, the PowerShell alias setup instructions would break due to word splitting. This has been addressed in the documented and generated setup instructions.

For more information, see #49 with thanks to @breadboi!

v1.0.1

22 Mar 20:12
Compare
Choose a tag to compare

Release notes for v1.0.1

What's New

Fix Windows bug impacting gh copilot alias use of ghcs and ghce

v1.0.1 is primarily a fix impacting Windows users around the new ghcs and ghce aliases as the executable file extension was being emitted in shell configuration output.

Big thanks to feedback from several within our user community including @ifalatiksetlog, @xt0rted, @rlove, @masewo, @dubois as well as out of office help from @colinshum! ❤️

For more information, see #47.

v1.0.0

21 Mar 14:04
ca1ec33
Compare
Choose a tag to compare

Release notes for v1.0.0

Following our public beta, we're excited to announce the general availability of GitHub Copilot in the CLI! 🎉

Bringing GitHub Copilot to your terminal, GitHub Copilot in the CLI assists with any task in the terminal:

  • Suggest commands using natural language for unfamiliar or hard to remember use cases.
  • Explain commands with finer details of arguments, flags, and expected outcomes.
  • Execute suggested commands in supported shells to stay in the flow.

What's New

Introducing support for ghcs and ghce aliases and executing commands for popular shells

Before GitHub Universe, we knew our community would need these two features from the Copilot for CLI technical preview, however your feedback in #2 and #5 confirmed it!

gh copilot alias will generate aliases for Bash, PowerShell, or Zsh that use fewer keystrokes to jump into the gh copilot experience:

  • ghcs for gh copilot suggest
  • ghce for gh copilot explain
For instructions to setup aliases, gh copilot alias --help

  • Bash

    echo 'eval "$(gh copilot alias -- bash)"' >> ~/.bashrc
  • PowerShell

    $GH_COPILOT_PROFILE = Join-Path -Path $(Split-Path -Path $PROFILE -Parent) -ChildPath "gh-copilot.ps1"
    gh copilot alias -- pwsh | Out-File ( New-Item -Path $GH_COPILOT_PROFILE -Force )
    echo ". $GH_COPILOT_PROFILE" >> $PROFILE
  • Zsh

    echo 'eval "$(gh copilot alias -- zsh)"' >> ~/.zshrc

In addition to making you faster, the new ghcs alias is the basis for the new Execute command option to execute and preserve generated suggestions:

$ ghcs upgrade GitHub CLI on MacOS

Welcome to GitHub Copilot in the CLI!
version 1.0.0 (2024-03-18)

I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency

Suggestion:

  brew upgrade gh

? Select an option  [Use arrows to move, type to filter]
> Copy command to clipboard
  Explain command
  Execute command
  Revise command
  Rate response
  Exit

Note

We are open to supporting additional popular shells with help from our community providing the same experience! 🙇

Configuration for Execute command confirmation prompt

GitHub Copilot in the CLI prompts for confirmation when executing commands. This safeguard will return you to the interactive loop if declined, focusing on safety by minimizing accidents.

$ ghcs upgrade GitHub CLI on MacOS

Welcome to GitHub Copilot in the CLI!
version 1.0.0 (2024-03-18)

I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency

Suggestion:

  brew upgrade gh

? Select an option
> Execute command

? Are you sure you want to execute the suggested command?  [Use arrows to move, type to filter]
> No
  Yes

However if you feel the trade off between safety and speed is important, gh copilot config provides an option that can change the confirmation prompt default, allowing faster execution of commands by removing the need to select Yes.

$ gh copilot config

? What would you like to configure?
> Default value for confirming command execution

? Default when asked to confirm execution of a generated suggestion?  [Use arrows to move, type to filter]
> No
  Yes

Copy to clipboard exits immediately

With GitHub Copilot's goal of keeping you in the flow, the Copy to clipboard option has been changed to exit immediately based on feedback from #2.

$ ghcs upgrade GitHub CLI on MacOS

Welcome to GitHub Copilot in the CLI!
version 1.0.0 (2024-03-18)

I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency

Suggestion:

  brew upgrade gh

? Select an option
> Copy command to clipboard

Command copied to clipboard!

v0.5.4-beta

04 Jan 20:05
ca1ec33
Compare
Choose a tag to compare
Merge pull request #4 from eliperkins/patch-1

Fix link to docs

v0.5.3-beta

10 Nov 13:21
ca1ec33
Compare
Choose a tag to compare
Merge pull request #4 from eliperkins/patch-1

Fix link to docs

v0.5.2-beta

08 Nov 01:30
2630cea
Compare
Choose a tag to compare
Add files via upload

v0.5.1-beta

06 Nov 22:07
2630cea
Compare
Choose a tag to compare
Add files via upload