Skip to content

Installing plugins from a specific branch or tag #1296

Description

@tlmii

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.

Activity

  1. added theissue type on Feb 4, 2026
  2. danmoseley commented on Mar 4, 2026

    @danmoseley

    It seems like right now when you specify a repo, it just pulls from whatever is served, in GitHub that would be the default branch, typically "main".

    The problem that causes is that the default branches is also the default target for PR's. But repos may want to "ship" out of a branch different to their branch of active development. Perhaps to give time to try out and prove the skills, and to check for conflicts between skills.

    Proposal above would not directly fix this, because we can assume most users won't specify a branch. One idea would be to look for some specially named branch first (if none is specified) and use that if it's present. That would be the release branch for repos that want to differentiate from the active development branch where PR's go.

    @tlmii thoughts? are my assumptions correct

  3. danmoseley commented on Mar 4, 2026

    @danmoseley

    From offline discussion, what I described is a different scenario, possibly solved by using the ref property on github in the marketplace.json schema. Then the default branch (say, main) would have the marketplace.json as usual, but its ref would point to the branch you actually release from.

    Not tested.

  4. lewing commented on Mar 4, 2026

    @lewing
  5. added
    area:plugins
    on Apr 6, 2026
  6. added
    area:installation
    on Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:installationarea:plugins

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions