Migrate git hooks from Husky to Prek and refresh gitattributes#68
Migrate git hooks from Husky to Prek and refresh gitattributes#68
Conversation
Co-authored-by: maehr <14755525+maehr@users.noreply.github.com>
Co-authored-by: maehr <14755525+maehr@users.noreply.github.com>
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the
Comment |
|
@copilot update .gitattributes with |
There was a problem hiding this comment.
Pull request overview
This PR migrates Git hook management from Husky to Prek, updating the hook runner while preserving existing pre-commit behavior that runs Prettier checks.
Changes:
- Replaced Husky with Prek (@j178/prek v0.3.1) as the Git hook management tool
- Added
.pre-commit-config.yamlwith pre-commit-compatible configuration - Updated documentation (README, CONTRIBUTING, AGENTS) to reflect the new Prek workflow
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package.json | Removed husky dependency, added @j178/prek, updated prepare script to run prek install |
| package-lock.json | Removed husky and unrelated deprecated lychee npm package, added @j178/prek with its dependencies |
| README.md | Updated references from Husky to Prek with installation and usage instructions |
| CONTRIBUTING.md | Added Prek hook installation steps and Husky-to-Prek migration guidance |
| AGENTS.md | Updated command reference table from Husky to Prek |
| .pre-commit-config.yaml | Added new Prek configuration file that runs prettier check on pre-commit |
| .husky/pre-commit | Removed old Husky hook file |
| .gitattributes | Removed .husky directory line ending configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: maehr <14755525+maehr@users.noreply.github.com>
Updated .gitattributes using the exact upstream snippet command and refreshed the link checker excludes for the reported timeouts. Commit: ba398b2. Screenshot: /tmp/gitattributes-update.svg Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot remove husky also from docs. assume people do not update their template |
Co-authored-by: maehr <14755525+maehr@users.noreply.github.com>
Pull request
Proposed changes
Migrate Git hook management from Husky to Prek, update contributor docs, refresh
.gitattributesusing upstream snippet heads, and adjust link-checker exclusions for external timeouts..pre-commit-config.yamland wirednpm run prepareto install hooks.@j178/prekas the hook runner..gitattributesfrom upstream snippets and updated.lycheerc.tomlexclusions for timeout-prone links.Example configuration:
Types of changes
Checklist
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.