github / github/copilot-cli

Installing plugins from a specific branch or tag

Aperta
#1,296 3 commenti 21 reazioni 0 assegnatari Vedi su GitHub
area:installation area:plugins
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### Describe the feature or problem you'd like to solve

Add support to the /plugin commands for installing plugins from a specific branch or tag of a github repo

### Proposed solution

Currently there is support for installing plugins or configuring marketplaces based on git repos using the simple `owner/repo` syntax. In the case of plugins they can be installed from a particular folder as well using `owner/repo:path/to/plugin`.

It would be nice to be able to specify a branch or tag as well. I believe the marketplace spec already supports a `ref` field for specifying the branch or tag. But that is not exposed to the command and isn't relevant for the direct plugin install scenario either.

One option would be to support `@{ref}` in the syntax, so you could end up with something like `owner/repo@branch:path/to/plugin` or `owner/repo:path/to/plugin@branch`. Though those might conflict with the `plugin@marketplace` syntax, at least visually, if not syntactically.

### Example prompts or workflows

`/plugin marketplace add owner/repo@feature-branch`
`/plugin install plugin@marketplace`
or
`/plugin install owner/repo@feature-branch`

### Additional context

It looks like the spec for marketplace also supports sha for a specific commit as well. I don't specifically have that need now, but for completeness that could be a part of it.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.