Skip to content

Support semver ranges for prek-version#81

Merged
j178 merged 3 commits into
mainfrom
stack/prek-semver-range
Mar 15, 2026
Merged

Support semver ranges for prek-version#81
j178 merged 3 commits into
mainfrom
stack/prek-semver-range

Conversation

@j178

@j178 j178 commented Mar 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • add semver range resolution for the prek-version input from the bundled manifest
  • document semver usage in the action inputs and README
  • add unit and CI coverage for semver range resolution

Stack

Depends on #83.

Copilot AI review requested due to automatic review settings March 15, 2026 12:17

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

Updates the action’s documentation and CI/tests to reflect that prek-version is resolved from the bundled version manifest and can accept semver ranges (in addition to exact versions and latest).

Changes:

  • Document semver range support for prek-version and clarify that the token input is retained only for backward compatibility.
  • Add unit tests covering manifest-backed version resolution for latest, exact versions, semver ranges, and invalid/unsatisfied inputs.
  • Add a CI workflow step that exercises semver range resolution (0.3.x) end-to-end.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
test/shared.test.ts Adds unit tests + a manifest fixture to validate semver range / latest resolution from the bundled manifest.
action.yaml Updates input descriptions for prek-version (semver ranges) and token (unused/back-compat).
README.md Documents semver range usage and explains the bundled version manifest + refresh workflow.
.github/workflows/ci.yaml Adds CI coverage for a semver range prek-version input.

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

Comment thread test/shared.test.ts Outdated
@j178 j178 force-pushed the stack/prek-semver-range branch from d3b08c1 to 837410c Compare March 15, 2026 12:34
@j178 j178 force-pushed the stack/prek-manifest-refresh-pr branch from 43a91fd to 6281c2d Compare March 15, 2026 12:34
@j178 j178 changed the title Document and test semver prek-version support Support semver ranges for prek-version Mar 15, 2026
@j178 j178 changed the base branch from stack/prek-manifest-refresh-pr to stack/prek-download-checksum March 15, 2026 12:35
@j178 j178 force-pushed the stack/prek-semver-range branch from 837410c to 383dc88 Compare March 15, 2026 12:43
@j178 j178 force-pushed the stack/prek-download-checksum branch from d10de0c to 202ba74 Compare March 15, 2026 12:43
@j178 j178 added the enhancement New feature or request label Mar 15, 2026
@j178 j178 force-pushed the stack/prek-download-checksum branch from 202ba74 to 6f5da20 Compare March 15, 2026 13:22
Base automatically changed from stack/prek-download-checksum to main March 15, 2026 13:26
@j178 j178 force-pushed the stack/prek-semver-range branch from 383dc88 to b1b44c4 Compare March 15, 2026 13:35
@j178 j178 merged commit d39622b into main Mar 15, 2026
9 checks passed
@j178 j178 deleted the stack/prek-semver-range branch March 15, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants