feat: allow docs, ci, test, refactor branches by default - #505
Conversation
✅ Deploy Preview for commit-check ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
📝 WalkthroughWalkthroughThe default allowed branch types now include seven additional conventional prefixes. The README and configuration documentation show the expanded list. Tests verify the new defaults and valid branch names. ChangesDefault branch type expansion
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related issues
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #505 +/- ##
=======================================
Coverage 97.36% 97.36%
=======================================
Files 12 12
Lines 1175 1175
=======================================
Hits 1144 1144
Misses 31 31 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will regress 1 benchmark
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ❌ | test_ai_agent_and_bot_branch_types_in_default |
196.7 µs | 232.2 µs | -15.31% |
| ⚡ | test_empty_message_passes |
1,171 µs | 748 µs | +56.55% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing sahilsaiyed-oss:feat/allow-default-branch-types (c93e730) with main (d534a3f)2
Footnotes
-
115 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
-
No successful run was found on
main(102cc45) during the generation of this report, so d534a3f was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/configuration.rst`:
- Around line 436-437: Update the documented default branch-type list in the
configuration section to match DEFAULT_BRANCH_TYPES, adding ai, claude, codex,
copilot, cursor, dependabot, and renovate; keep the statement that these
prefixes are included by default accurate.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 7b79d873-3523-4050-9c77-0f06f5e86fd6
📒 Files selected for processing (4)
README.mdcommit_check/__init__.pydocs/configuration.rsttests/rule_builder_test.py
| - ["feature", "bugfix", "hotfix", "release", "chore", "feat", "fix", "build", "ci", "docs", "perf", "refactor", "test", "style"] | ||
| - Allowed branch types when conventional_branch is true. AI agent prefixes (``ai/``, ``claude/``, ``codex/``, ``copilot/``, ``cursor/``) and bot prefixes (``dependabot/``) are also included by default. |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Synchronize the documented default with DEFAULT_BRANCH_TYPES.
commit_check/__init__.py also includes ai, claude, codex, copilot, cursor, dependabot, and renovate. The default list at Line 436 omits these values, although Line 437 says they are included by default. Add the missing prefixes or label this row as a partial example.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/configuration.rst` around lines 436 - 437, Update the documented default
branch-type list in the configuration section to match DEFAULT_BRANCH_TYPES,
adding ai, claude, codex, copilot, cursor, dependabot, and renovate; keep the
statement that these prefixes are included by default accurate.
c93e730 to
bf7c60d
Compare
|
…509) Addresses the review comment on #505: the options table now lists the full default (all 21 types including AI agent and bot prefixes) and the docs explicitly note that DEFAULT_BRANCH_TYPES is a superset of the Conventional Branch spec, with strict spec-only validation available via an explicit allow_branch_types setting. Closes #494



Summary
This PR updates the default branch types so they are consistent with the default Conventional Commit types.
Changes
buildcidocsperfrefactorstyletestSummary by CodeRabbit
New Features
build,ci,docs,perf,refactor,style, andtest.Documentation
Tests