Repository navigation
fix: allow special characters in conventional commit description - #447
Conversation
Change the regex from ([\w ])+ to [^\n]+ for the description part of the conventional commit message. The previous pattern only allowed word characters and spaces, causing false rejections for common special characters like #, ", /, (, ), @, etc. Fixes issues like: - feat: fix bug #123 → # was rejected - fix: use "quotes" → " was rejected - docs: update API/URL → / was rejected
✅ Deploy Preview for commit-check ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #447 +/- ##
=======================================
Coverage 96.60% 96.60%
=======================================
Files 10 10
Lines 1089 1089
=======================================
Hits 1052 1052
Misses 37 37 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
|
Warning Review limit reached
Next review available in: 10 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. 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: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Merging this PR will not alter performance
Comparing Footnotes
|



Summary
The conventional commit regex used
([\w ])+for the description part, which only allowed word characters (letters, digits, underscore) and spaces. This caused false rejections for common special characters in commit descriptions.Changes
Changed
([\w ])+to[^\n]+in_build_conventional_commit_regex()to allow any character except newline in the description, which aligns with the Conventional Commits specification where the subject is a single line.Before (broken)
feat: fix bug #123#not in[\w ])fix: use "double quotes""not in[\w ])docs: update API/URL/not in[\w ])After (fixed)
feat: fix bug #123fix: use "double quotes"docs: update API/URLfeat: add featurefeat(scope)!: breaking changeCloses #6