Uh oh!
There was an error while loading. Please reload this page.
chore: add git hooks and commit conventions - #7
Merged
Conversation
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
| "format:check": "oxfmt --check .", | ||
| "lint": "TMPDIR=/tmp turbo run lint", | ||
| "lint:ci": "pnpm format:check && pnpm lint", | ||
| "prepare": "husky", |
There was a problem hiding this comment.
Commit workflow remains undocumented
The new prepare lifecycle installs hooks that format staged files and enforce Conventional Commit messages, but the contributor documentation does not explain this changed workflow or how to resolve hook failures.
Context Used: CLAUDE.md (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: package.json
Line: 17
Comment:
**Commit workflow remains undocumented**
The new `prepare` lifecycle installs hooks that format staged files and enforce Conventional Commit messages, but the contributor documentation does not explain this changed workflow or how to resolve hook failures.
**Context Used:** CLAUDE.md ([source](https://github.com/wolfstar-project/agent-zero/blob/main/CLAUDE.md))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
RedStar071
marked this pull request as ready for review
August 9, 2026 13:59
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add lightweight local commit quality gates for contributors.
preparelifecycle via.husky/install.mjs, which skips installation in CI and production (Husky how-to)pre-commitso only staged files are formatted with Oxfmtcommit-msg@commitlint/config-conventionalto enforce Conventional Commit messagesengines.nodeto>=22.18, matching the documented toolchain (nano-staged 1.x needsutil.styleText, unavailable on Node 20.11)CONTRIBUTING.mdHooks
pre-commit→pnpm exec nano-stagedcommit-msg→pnpm exec commitlint --edit "$1"Dependency note
The dependency declarations use current Husky 9.1.7, nano-staged 1.0.2 and commitlint 21.x.
pnpm-lock.yamlhas been regenerated with pnpm 10.15.0 (pnpm install --lockfile-only), sopnpm install --frozen-lockfilepasses again in CI.Need help on this PR? Tag
@codesmithwith what you need. Autofix is enabled.Confidence Score: 5/5
No blocking failure remains.
The Node.js compatibility, hook installation behavior, staged-file formatting, and commit-message enforcement paths were exercised successfully against the current configuration.
What T-Rex did
Reviews (3): Last reviewed commit: "chore: skip husky install in CI and prod..." | Re-trigger Greptile