Skip to content

chore(commits): retire gitmoji for plain Conventional Commits - #84

Merged
scttbnsn merged 3 commits into
dev/v0.9from
chore/conventional-commits
Aug 11, 2026
Merged

scttbnsn merged 3 commits into
dev/v0.9from
chore/conventional-commits

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

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 syntax
  • scripts/validate-commit-msg.sh — validates the new type list, rejects a leading emoji
  • lefthook.yml — updated fail text
  • AGENTS.md / RELEASING.md — describe the new convention
  • .github/workflows/ci.yml — commit-message job aligned with the new type list

Backward compatibility

Release tooling reads pre-migration history, so it tolerates an optional leading legacy emoji:

  • release-cut.yml semver computation matches feat with 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.yml keeps 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

  • Support 11 Conventional Commit types.
  • Support optional scopes and ! breaking-change syntax.
  • Support legacy leading emojis in release versioning and changelog generation.

🔧 Changed

  • Updated commit validation, documentation, CI, release tooling, and changelog configuration.
  • Mapped retired gitmoji types to current Conventional Commit types.
  • Updated validator quoting for shfmt compatibility.

🗑️ Removed

  • Gitmoji requirements for new commits.
  • Leading emojis from accepted new commit messages.

⚠️ Breaking

  • New commits with leading emojis are rejected.
  • Existing commits remain unchanged and remain supported by release tooling.

Concerns

  • Add tests for all 11 commit types, optional scopes, ! syntax, invalid leading characters, and legacy emoji compatibility.
  • Verify that retired gitmoji mappings produce the intended semantic-version bumps and changelog categories.
  • Verify that CI and local hook validation use identical commit-message rules.

- 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.
@vercel

vercel Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
getportwing Error Error Aug 11, 2026 8:33pm

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 57e15e11-fb90-43f8-aa6d-a1b3e2ab24e0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The 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 feat. Changelog filters cover plain Conventional Commit categories and retain legacy exclusions. Contributor, agent, and release documentation reflect the updated convention.

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/conventional-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.

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 9a0ab13 and fde7df5.

📒 Files selected for processing (8)
  • .github/workflows/ci.yml
  • .github/workflows/release-cut.yml
  • .goreleaser.yml
  • AGENTS.md
  • CONTRIBUTING.md
  • RELEASING.md
  • lefthook.yml
  • scripts/validate-commit-msg.sh

Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/release-cut.yml Resolved
Comment thread CONTRIBUTING.md Resolved
- 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 "!"
@scttbnsn
scttbnsn merged commit 916ae81 into dev/v0.9 Aug 11, 2026
21 of 23 checks passed
@scttbnsn
scttbnsn deleted the chore/conventional-commits branch August 14, 2026 20:54

This branch had an error being deployed

1 failed deployment
Preview — 8935ed79 Deployed Aug 11, 2026 by vercel[bot]
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