Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Provide command to upgrade extension as part of the 'A new release of gh-copilot is available' notification #64

Open
0xdevalias opened this issue Mar 28, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@0xdevalias
Copy link

0xdevalias commented Mar 28, 2024

Describe the need

When the extension reports that a new version is available, it would be nice if it also gave me an easily copy/pasteable command to update to that new version.

Currently it shows this:

A new release of gh-copilot is available: 1.0.0 → 1.0.1
https://github.com/github/gh-copilot/releases/tag/v1.0.1

Ideally it would show something like this so I don't have to remember how the CLI works and/or go and look at the --help every time:

A new release of gh-copilot is available: 1.0.0 → 1.0.1
https://github.com/github/gh-copilot/releases/tag/v1.0.1

To upgrade, run: gh extension upgrade gh-copilot

Version

Observed on 1.0.0

Relevant terminal output

See above.

@0xdevalias 0xdevalias added enhancement New feature or request needs-triage needs to be reviewed labels Mar 28, 2024
@andyfeller
Copy link
Contributor

@0xdevalias : not a bad idea, I like it. 🤔

@andyfeller andyfeller removed the needs-triage needs to be reviewed label Mar 28, 2024
@0xdevalias
Copy link
Author

0xdevalias commented Apr 6, 2024

Here's the specific format of the gh 'update available' text, may be cool to match it:

A new release of gh is available: 2.46.0 → 2.47.0
To upgrade, run: brew upgrade gh
https://github.com/cli/cli/releases/tag/v2.47.0

@ptrotter1
Copy link

In the meantime, how do I update the copilot extension manually? I'm on Windows.

@0xdevalias
Copy link
Author

0xdevalias commented May 3, 2024

how do I update the copilot extension manually

⇒ gh extension upgrade -h
Upgrade installed extensions

USAGE
  gh extension upgrade {<name> | --all} [flags]

FLAGS
  --all       Upgrade all extensions
  --dry-run   Only display upgrades
  --force     Force upgrade extension

INHERITED FLAGS
  --help   Show help for command

LEARN MORE
  Use `gh <command> <subcommand> --help` for more information about a command.
  Read the manual at https://cli.github.com/manual

So:

⇒ gh extension upgrade gh-copilot
[copilot]: upgraded from v1.0.1 to v1.0.2
✓ Successfully upgraded extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants