Repository navigation
chore(commits): retire gitmoji for plain Conventional Commits - #84
Conversation
- docs(contributing): document the 11-type format and breaking-change syntax - chore(hooks): point lefthook at the updated validator and fail text - ci: align the commit-message job with the new type list - build(goreleaser): exclude plain types, keep legacy emoji filters for old tags Release tooling tolerates an optional leading legacy emoji, so pre-migration history still computes the same semver bump as before.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe commit convention changes from emoji-prefixed messages to standard Conventional Commits. Validation accepts supported types, optional scopes, and breaking-change markers, while rejecting leading non-ASCII characters. Release parsing accepts optional legacy emojis before 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 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 @.github/workflows/ci.yml:
- Around line 247-256: Update the CI commit-validation step using the existing
scripts/validate-commit-msg.sh contract: invoke that validator instead of
maintaining a separate regex, or exactly replicate its scope pattern and
exemptions for Merge, Revert, fixup!, and squash! subjects. Ensure CI accepts
scopes such as feat(api/v2) consistently with the commit hook.
In @.github/workflows/release-cut.yml:
- Around line 106-110: Update the subject classification loop around the `bump`
selection to first match the complete supported Conventional Commit header using
the runner-compatible `header` grammar, including optional non-ASCII prefix,
scope, `!`, and required colon/spacing. Apply the major `!:` and minor `feat`
checks only to subjects matching that parsed header, so unsupported types such
as `urgent` and `feature` are not classified.
In `@CONTRIBUTING.md`:
- Line 80: Clarify the CONTRIBUTING.md guidance that BREAKING CHANGE: is valid
Conventional Commit syntax but is not recognized by the release-cut workflow for
major-version calculation; state that major bumps currently require ! in the
commit subject, without changing unrelated release behavior.
🪄 Autofix
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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: e35cb8a1-21c5-468c-b616-caa32308fa93
📒 Files selected for processing (8)
.github/workflows/ci.yml.github/workflows/release-cut.yml.goreleaser.ymlAGENTS.mdCONTRIBUTING.mdRELEASING.mdlefthook.ymlscripts/validate-commit-msg.sh
- fix(ci): release-cut only classifies subjects matching the real header grammar (legacy emoji prefix, known type, optional scope, !, colon) so "urgent!: x" and "feature: x" no longer miscount as major/minor - ci: PR commit check delegates to scripts/validate-commit-msg.sh and diffs against the PR base branch, keeping CI and the hook in lockstep - docs(contributing): BREAKING CHANGE footer is valid syntax but release versioning reads only the subject-line "!"
Retires the gitmoji commit format for plain Conventional Commits, matching the convention now standard across the CodesWhat repos.
What changed
CONTRIBUTING.md— documents the 11-type format (feat fix docs style refactor perf test build ci chore revert) and the!breaking-change syntaxscripts/validate-commit-msg.sh— validates the new type list, rejects a leading emojilefthook.yml— updated fail textAGENTS.md/RELEASING.md— describe the new convention.github/workflows/ci.yml— commit-message job aligned with the new type listBackward compatibility
Release tooling reads pre-migration history, so it tolerates an optional leading legacy emoji:
release-cut.ymlsemver computation matchesfeatwith or without a leading emoji. Verified against 300 commits of real history: every✨ feat(...)subject still computes a minor bump, and📝 docs: ...feature parity...correctly does not..goreleaser.ymlkeeps the legacy emoji changelog filters alongside the new plain-type ones, so previously-tagged releases render unchanged.Retired types map as
config → chore(config),deps → build(deps),deploy → ci(deploy),remove → refactor(<scope>).Existing history is left alone and never rewritten.
Changelog
✨ Added
!breaking-change syntax.🔧 Changed
shfmtcompatibility.🗑️ Removed
Concerns
!syntax, invalid leading characters, and legacy emoji compatibility.