code-review-hook
v1.0.0
Published
A git hook for automated code review using Dify AI
Maintainers
Readme
Code Review Hook
A git hook for automated code review that sends diffs to an API endpoint.
Installation
npm install code-review-hook --save-devUsage with Husky
- Install Husky:
npm install husky --save-dev
npx husky install- Add the hook to your pre-commit:
npx husky add .husky/pre-commit "npx code-review-hook"How it Works
This hook will:
- Get all staged files
- Generate diffs for each file
- Send the diffs to the API endpoint
- Block the commit if the API request fails
License
ISC
