← Back to Pull requests

feat: add plugins input #656

Closed
unknown closed this pull request without merging on Oct 04, 2026 01:00 UTC
View on GitHub
unknown unknown commented on Oct 03, 2026 23:08 UTC
Author

<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/mise-action/trails/29
<!-- entire-trail-link-end -->

Summary


New plugins input: one plugin per line, name or name url (blank lines and # comments ignored; a #ref fragment in a URL is kept). The action runs mise plugins install -y <name> [url] for each before mise install, so tools and idiomatic version files that need a plugin resolve. You said in #118 you'd accept a PR for this.

Behaviour I checked against mise 2026.9.18:

  • reinstalling an already-installed plugin (e.g. restored from the cache) only warns, exit 0;

  • an unknown plugin exits 1, which fails the step;

  • a .yvmrc is picked up once the yarn plugin is installed, but only with idiomatic_version_file_enable_tools set, so the README example sets MISE_IDIOMATIC_VERSION_FILE_ENABLE_TOOLS;

  • [plugins] in mise.toml is cloned by mise install without this input, which the README mentions.
  • Parsing is in src/plugins.ts with tests in scripts/plugins.test.mjs. Typecheck, lint, tests and build pass; dist/ rebuilt. Not run in a real workflow.

    Fixes #118

    🤖 Generated with Claude Code

    <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Low Risk

    Additive workflow input and cache-key segment; plugin install failures surface as step errors but do not change auth or existing install paths.

    > Overview

    Adds a plugins action input so workflows can list mise plugins (one per line as name or name url) before tool install. The action parses that list (ignoring blanks/comments, rejecting malformed or conflicting entries), runs mise plugins install -y for each entry before mise install / bootstrap, and documents usage—including idiomatic files like .yvmrc with MISE_IDIOMATIC_VERSION_FILE_ENABLE_TOOLS.

    > Cache invalidation now includes a normalized SHA256 of the plugins list: the default cache key template gains {{plugins_hash}}, and custom cache_key templates can use the same variable so plugin URL/ref changes do not reuse a stale mise data cache.

    > <sup>Reviewed by Cursor Bugbot for commit 6b358bdce622b9d4303397b2e6c66a6e0481552b. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Configure plugins by listing one plugin per line, with an optional source URL. Plugins are installed before tools, and plugin configuration is included in the cache key.
    Documentation
    Added guidance for configuring plugins in the action or mise.toml, including notes on existing plugins and idiomatic version-file support.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 361 lines (+270 / -91) across 4 files Reviewer: jdx Review duration: 111m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.43) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 361 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.352
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #656"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.6% (MEDIUM) · Higher = larger blast radius
    42.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.4% · Safe to merge
    18.4%