chore: migrate hooks and staged tasks to Rstack CLI - #1885
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Pull request overview
This PR migrates repository-level Git hooks and staged-file automation from simple-git-hooks + nano-staged to Rstack CLI (rs hooks / rs staged), consolidating tooling with the existing rs lint / rs fmt workflows used elsewhere in the repo.
Changes:
- Add
define.staged()rules inrstack.config.tsto preserve the existing staged globs and commands. - Switch hook installation to
rs hooksvia the rootpreparescript and add a repo hook that runsrs staged. - Remove
simple-git-hooks/nano-stagedfrom workspace catalogs and lockfile.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| rstack.config.ts | Defines staged-file task configuration via define.staged() for rs staged. |
| package.json | Replaces prepare: simple-git-hooks with prepare: rs hooks and removes old hook/task config blocks and deps. |
| .rstack/hooks/pre-commit | Adds a repository-level pre-commit hook that runs rs staged. |
| pnpm-workspace.yaml | Removes nano-staged / simple-git-hooks from catalogs and build allowlist. |
| pnpm-lock.yaml | Removes nano-staged / simple-git-hooks entries from the lockfile. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Summary
This PR moves repository-level Git hooks and staged-file tasks to Rstack CLI so they use the same unified tooling as linting and formatting.
rs hooksand invokers stagedfrom the pre-commit hook.define.staged(), while removingsimple-git-hooksandnano-staged.Related Links
Checklist