Skip to content

Support generic git subplugin selectors#1694

Open
nisiyong wants to merge 3 commits into
jackwener:mainfrom
nisiyong:nisiyong/gitlab-plugin-install
Open

Support generic git subplugin selectors#1694
nisiyong wants to merge 3 commits into
jackwener:mainfrom
nisiyong:nisiyong/gitlab-plugin-install

Conversation

@nisiyong
Copy link
Copy Markdown

Description

Adds support for installing a specific monorepo sub-plugin from generic git URLs using repo.git#subplugin, matching the existing GitHub shorthand behavior.

Related issue:

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🌐 New site adapter
  • 📝 Documentation
  • ♻️ Refactor
  • 🔧 CI / build / tooling

Checklist

  • I ran the checks relevant to this PR
  • I updated tests or docs if needed
  • I included output or screenshots when useful

Documentation (if adding/modifying an adapter)

  • Added doc page under docs/adapters/ (if new adapter)
  • Updated docs/adapters/index.md table (if new adapter)
  • Updated sidebar in docs/.vitepress/config.mts (if new adapter)
  • Updated README.md / README.zh-CN.md when command discoverability changed
  • Used positional args for the command's primary subject unless a named flag is clearly better
  • Normalized expected adapter failures to CliError subclasses instead of raw Error

Screenshots / Output

npx vitest run --project unit src/plugin.test.ts
npm run typecheck

@nisiyong nisiyong marked this pull request as ready for review May 20, 2026 10:57
@nisiyong
Copy link
Copy Markdown
Author

This feature is very important for enterprise use because we have a large number of plugins stored in a single, centralized repository.

Currently, our goal is for each "Skill" to correspond to its own specific CLI plugin. However, the current repository does not support installing individual sub-plugins. Every time we try to install a specific Skill, we are forced to perform a full installation of all CLI plugins.

This leads to significant environment pollution. We hope to collaborate with the community to build support for this specific feature.

@nisiyong nisiyong force-pushed the nisiyong/gitlab-plugin-install branch from 21dc25e to 4dd9bb2 Compare May 21, 2026 02:10
@nisiyong
Copy link
Copy Markdown
Author

@jackwener, I have integrated your two latest commits on my end, and the self-testing looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants