Skip to content

chore: migrate to mise.toml#35

Draft
3w36zj6 wants to merge 2 commits intomainfrom
feature/migrate-to-mise-toml
Draft

chore: migrate to mise.toml#35
3w36zj6 wants to merge 2 commits intomainfrom
feature/migrate-to-mise-toml

Conversation

@3w36zj6
Copy link
Member

@3w36zj6 3w36zj6 commented Mar 1, 2026

No description provided.

@3w36zj6 3w36zj6 requested a review from Copilot March 1, 2026 10:32
@3w36zj6 3w36zj6 force-pushed the feature/migrate-to-mise-toml branch from eeb74fb to 1420acf Compare March 1, 2026 10:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the repository’s toolchain pinning from an .tool-versions file to a mise.toml configuration, aligning local development and (some) CI setup with mise.

Changes:

  • Add mise.toml with pinned versions for bun/node and GitHub Actions linters.
  • Remove the existing .tool-versions file.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
mise.toml Introduces mise-managed tool version pins for the repo toolchain.
.tool-versions Removes the previous asdf-style tool version pins.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
- name: Get Node.js version from mise.toml
id: node-version
run: echo "version=$(mise ls --local --json | jq -r '.node[0].requested_version')" >> "$GITHUB_OUTPUT"
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mise ls JSON is being queried with .node[0].requested_version, but mise.toml defines the tool as nodejs. This likely makes the jq expression fail at runtime (missing key) and will break publishing. Update the jq filter (or the tool name in mise.toml) so the JSON key matches, and consider using a more direct command like mise current <tool> to avoid relying on ls output structure.

Suggested change
run: echo "version=$(mise ls --local --json | jq -r '.node[0].requested_version')" >> "$GITHUB_OUTPUT"
run: echo "version=$(mise ls --local --json | jq -r '.nodejs[0].requested_version')" >> "$GITHUB_OUTPUT"

Copilot uses AI. Check for mistakes.
Comment on lines +19 to 23
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
- name: Get Node.js version from mise.toml
id: node-version
run: echo "version=$(mise ls --local --json | jq -r '.node[0].requested_version')" >> "$GITHUB_OUTPUT"
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow likely installs Node.js twice: once via jdx/mise-action (because mise.toml includes nodejs) and again via actions/setup-node. That adds unnecessary time and potential version drift. Consider configuring mise-action to only install the non-Node tools needed here (e.g., bun/jq) or rely on mise for Node and avoid reinstalling it with setup-node (while still configuring npm auth/registry).

Copilot uses AI. Check for mistakes.
zizmor="1.18.0"
actionlint="1.7.9"
ghalint="1.5.3"
jq = "1.8.1"
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In mise.toml, jq is the only entry using spaced = (jq = "1.8.1") while the rest use tool="version". Consider normalizing the formatting for consistency to reduce churn in future edits.

Suggested change
jq = "1.8.1"
jq="1.8.1"

Copilot uses AI. Check for mistakes.
@3w36zj6 3w36zj6 marked this pull request as draft March 1, 2026 11:10
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