Commit Message Conventions
April 20, 2025 ยท View on GitHub
This project uses semantic commits with Gitmoji prefixes to improve clarity, consistency, and automation in version control.
We follow a format inspired by Conventional Commits and Gitmoji, with the emoji placed at the beginning of the message.
๐งฉ Format
<emoji> type(scope): message
โ Example
โจ feat(core): support plugin previews
๐ Type Reference
| Type | Purpose | Emoji | Example |
|---|---|---|---|
feat | Add a new feature | โจ | โจ feat(api): add pagination support |
fix | Bug fix | ๐ | ๐ fix(router): handle null input |
docs | Documentation update | ๐ | ๐ docs(README): update usage examples |
style | Code style change (no logic impact) | ๐จ | ๐จ style(ui): unify spacing rules |
refactor | Code refactor (no feature/bug fix) | โป๏ธ | โป๏ธ refactor(core): simplify config merging |
perf | Performance improvement | โก | โก perf(search): optimize loop conditions |
test | Add or update tests | โ | โ
test(widget): add shortcut toggle test |
build | Build-related changes | ๐ฆ | ๐ฆ build(config): update to latest LTS Node |
ci | CI/CD changes (pipelines, workflows) | ๐ท | ๐ท ci(actions): add lint and test stages |
chore | Other minor tasks (deps, tooling, cleanup) | ๐ง | ๐ง chore(deps): remove unused libraries |
revert | Revert a previous commit | โช | โช revert(router): undo redirect logic |
๐ Scope Reference
| Scope | Description |
|---|---|
README | Main project readme |
plugin | Plugin entry file |
shortcuts | Keyboard shortcut configuration |
examples | Usage examples and guides |
widget | ZLE widget functions and interaction |
config | Configuration system or files |
functions | Utility functions used across widgets |
docs | Markdown files under project-docs/ |
ci | GitHub Actions, CI setup |
assets | Project logo, preview images, and visual assets |
๐จ Breaking Changes
For breaking changes, include a note after the commit body:
๐ฅ feat(core): drop support for legacy API
BREAKING CHANGE: This version is no longer compatible with v0 configs.
โ Tips
- Use present tense:
add, notadded;fix, notfixed - Keep messages under 100 characters if possible
- Be consistent with emoji and spacing
Happy committing! ๐