Skip to content

Rewrite in typescript#76

Merged
j178 merged 1 commit intomainfrom
ts
Mar 15, 2026
Merged

Rewrite in typescript#76
j178 merged 1 commit intomainfrom
ts

Conversation

@j178
Copy link
Copy Markdown
Owner

@j178 j178 commented Mar 12, 2026

No description provided.

@j178 j178 added the enhancement New feature or request label Mar 12, 2026
Comment thread .github/workflows/ci.yaml Fixed
Comment thread .github/workflows/ci.yaml Fixed
Comment thread .github/workflows/release.yml Fixed
Comment thread .github/workflows/release.yml Fixed
Comment thread .github/workflows/release.yml Fixed
Comment thread .github/workflows/release.yml Fixed
@j178 j178 force-pushed the ts branch 2 times, most recently from 05db751 to 1be243d Compare March 12, 2026 11:57
Comment thread .github/workflows/release.yml Fixed
@j178 j178 force-pushed the ts branch 2 times, most recently from baa7f3b to bd63cdb Compare March 12, 2026 12:14
@j178
Copy link
Copy Markdown
Owner Author

j178 commented Mar 12, 2026

@codex[agent] review

@Codex Codex AI mentioned this pull request Mar 12, 2026
Repository owner deleted a comment from Codex AI Mar 12, 2026
@j178 j178 marked this pull request as ready for review March 12, 2026 12:22
Copilot AI review requested due to automatic review settings March 12, 2026 12:22
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd63cdbec1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/release.yml Outdated
Comment thread src/shared.ts Outdated
Copy link
Copy Markdown

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

This PR migrates the action implementation from a composite (Python/Bash/Pwsh) action to a Node.js (node24) action, adding TypeScript source, unit tests, and CI/release workflows to build and verify the bundled dist/ artifacts.

Changes:

  • Replace composite action steps with Node entrypoints (src/main.ts + src/post.ts) and shared installer/cache logic (src/shared.ts).
  • Add TypeScript build configs, npm scripts/dependencies, and Node-based unit tests.
  • Update documentation and CI/release workflows to validate bundling and ensure dist/ stays committed.

Reviewed changes

Copilot reviewed 12 out of 17 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
action.yaml Switches action runtime to node24 with main/post JS entrypoints in dist/.
src/main.ts Main action flow: resolve version, install, restore cache, run prek, show logs, prune cache.
src/post.ts Post-step entrypoint to save cache based on saved state.
src/shared.ts Core logic for version resolution, download/install, tool-cache staging, cache restore/save, and running prek.
test/shared.test.ts Adds unit tests for helper functions and filesystem staging behavior.
tsconfig.json / tsconfig.test.json Adds TS compiler configs for production and test builds.
package.json / package-lock.json Adds npm scripts and dependencies for build/test/bundle.
README.md Updates usage docs, inputs/outputs, and examples for the new implementation.
CONTRIBUTING.md Documents local dev workflow and requirement to commit dist/ outputs.
.github/workflows/ci.yaml Adds unit-test and bundle verification jobs (ensures dist/ is up to date).
.github/workflows/release.yml Adds tagged release workflow that rebuilds and verifies dist/ before creating a release.
.pre-commit-config.yaml Excludes dist/ from pre-commit runs.
.gitignore Ignores lib/, node_modules/, and .test-build/ outputs.

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

Comment thread src/shared.ts Outdated
Comment thread src/main.ts
Comment thread src/shared.ts
Comment thread src/shared.ts Outdated
Comment thread src/shared.ts
@j178 j178 merged commit a883013 into main Mar 15, 2026
9 checks passed
@j178 j178 deleted the ts branch March 15, 2026 10:31
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.

3 participants