Skip to content

Simplify manifest version handling#92

Merged
j178 merged 2 commits into
mainfrom
feat/simplify-version-manifest
Mar 16, 2026
Merged

Simplify manifest version handling#92
j178 merged 2 commits into
mainfrom
feat/simplify-version-manifest

Conversation

@j178

@j178 j178 commented Mar 16, 2026

Copy link
Copy Markdown
Owner

cleanup

Copilot AI review requested due to automatic review settings March 16, 2026 03:56
@j178 j178 added the internal label Mar 16, 2026
@j178 j178 force-pushed the feat/simplify-version-manifest branch from 7aca952 to 96ee35b Compare March 16, 2026 03:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR simplifies how prek versions are represented and resolved by switching internal handling to “bare” semver strings (e.g., 0.3.5) while keeping GitHub-facing tags and outputs v-prefixed where needed.

Changes:

  • Refactors the bundled version manifest shape to be a flat array of releases and updates resolver/lookup logic accordingly.
  • Introduces branded Version / NormalizedVersion types and adjusts install + main flow to use bare versions internally while outputting v-prefixed versions.
  • Moves/updates unit tests to cover the new manifest and version normalization behavior.

Reviewed changes

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

Show a summary per file
File Description
test/manifest.test.ts Adds dedicated tests for manifest version resolution, input parsing, and normalization helpers.
test/install.test.ts Removes manifest/input tests from install tests; updates checksum fixtures to match new manifest asset type.
src/types.ts Introduces Version/NormalizedVersion and simplifies VersionManifest + manifest release/asset shapes.
src/manifest.ts Updates manifest lookup and version resolution to return bare Version values and use the new manifest structure.
src/main.ts Normalizes output prek-version back to a v-prefixed tag while using bare versions internally.
src/install.ts Switches install flow/tool-cache integration to use bare Version values consistently.
src/inputs.ts Adds a clarifying comment; no functional changes.
scripts/update-version-manifest.mjs Writes the manifest as an array of releases, drops unused fields, and skips draft releases.

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

Comment thread test/manifest.test.ts Outdated
Comment thread test/manifest.test.ts Outdated
@j178 j178 force-pushed the feat/simplify-version-manifest branch from 946a4a7 to 3f29d9e Compare March 16, 2026 04:17
@j178 j178 force-pushed the feat/simplify-version-manifest branch from 3f29d9e to 3a1ed42 Compare March 16, 2026 04:23
@j178 j178 merged commit f0e45c5 into main Mar 16, 2026
9 checks passed
@j178 j178 deleted the feat/simplify-version-manifest branch March 16, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants