Skip to content

chore: enforce conventional commits via commitlint and Husky#84

Draft
frederikprijck wants to merge 11 commits into
mainfrom
worktree-coventional-commits
Draft

chore: enforce conventional commits via commitlint and Husky#84
frederikprijck wants to merge 11 commits into
mainfrom
worktree-coventional-commits

Conversation

@frederikprijck

Copy link
Copy Markdown
Member

Summary

  • Installs husky, @commitlint/cli, and @commitlint/config-conventional as root dev dependencies with a prepare script so hooks auto-install after npm install
  • Adds commitlint.config.js extending the conventional commits spec, with scope-enum (error) restricting scopes to auth0-fastify, auth0-fastify-api, ci, security, deps and scope-empty (warning) nudging contributors to include a scope
  • Creates .husky/commit-msg hook to validate commit messages locally before they're committed
  • Adds a commitlint CI job to .github/workflows/test.yml using wagoid/commitlint-github-action (pinned to SHA), running on pull_request events only

Test Plan

  • Run npm install and verify .husky/commit-msg is present
  • Try git commit with a bad message (e.g. bad message) — should be blocked with a commitlint error
  • Try git commit with a valid message (e.g. feat(auth0-fastify): something) — should succeed
  • Try git commit with an invalid scope (e.g. feat(unknown): something) — should be blocked
  • Open a PR and verify the Commitlint CI job runs and passes

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@frederikprijck, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 51 minutes and 55 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

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, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ea0617de-ef8e-4e5f-81c9-2181233c4741

📥 Commits

Reviewing files that changed from the base of the PR and between 3e40188 and b23a1a3.

📒 Files selected for processing (4)
  • .github/workflows/test.yml
  • .husky/commit-msg
  • commitlint.config.js
  • package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch worktree-coventional-commits

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@frederikprijck frederikprijck marked this pull request as draft June 19, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant