Uh oh!
There was an error while loading. Please reload this page.
chore: add pre-commit validation hook for PR template compliance - #1508
Conversation
Warning Review limit reached
Next review available in:40 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
⏱️ Aging and SLA annotation
Maintained by project-meta-sync workflow. |
🔍 Reviewer Summary for PR #1508CI Status: ✅ Recommendations
|
Tick the box to add this pull request to the merge queue (same as
|
Implements mandatory pre-commit checklist validation to prevent governance
violations BEFORE push. Validates:
- Branch naming ({type}/{scope}-{short-title}, no claude/ prefix)
- Prevents direct commits to main/develop
- For feat/ branches: warns about required template sections
Hook can be integrated with Claude Code UserPromptSubmit hook in
local .claude/settings.json (example provided in PR body).
Relates to #1489
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>5600ad1 to
f647baeCompareUh oh!
There was an error while loading. Please reload this page.
Linked issues
Relates to #1489
Summary
Adds pre-commit validation hook to enforce governance compliance before push. Validates branch naming, prevents direct commits to main/develop, and warns about missing PR template sections.
Changes
hooks/pr-checklist-validator.sh— executable pre-commit validation hookFeatures
Integration
Add to
.claude/settings.json(local, not committed):{ "hooks": { "UserPromptSubmit": [ { "matcher": "", "hooks": [ { "type": "command", "command": "hooks/pr-checklist-validator.sh", "statusMessage": "Validating PR compliance checklist..." } ] } ] } }Changelog
Added
Checklist (Global DoD / PR)