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

TypePurposeEmojiExample
featAdd a new featureโœจโœจ feat(api): add pagination support
fixBug fix๐Ÿ›๐Ÿ› fix(router): handle null input
docsDocumentation update๐Ÿ“๐Ÿ“ docs(README): update usage examples
styleCode style change (no logic impact)๐ŸŽจ๐ŸŽจ style(ui): unify spacing rules
refactorCode refactor (no feature/bug fix)โ™ป๏ธโ™ป๏ธ refactor(core): simplify config merging
perfPerformance improvementโšกโšก perf(search): optimize loop conditions
testAdd or update testsโœ…โœ… test(widget): add shortcut toggle test
buildBuild-related changes๐Ÿ“ฆ๐Ÿ“ฆ build(config): update to latest LTS Node
ciCI/CD changes (pipelines, workflows)๐Ÿ‘ท๐Ÿ‘ท ci(actions): add lint and test stages
choreOther minor tasks (deps, tooling, cleanup)๐Ÿ”ง๐Ÿ”ง chore(deps): remove unused libraries
revertRevert a previous commitโชโช revert(router): undo redirect logic

๐Ÿ“Œ Scope Reference

ScopeDescription
READMEMain project readme
pluginPlugin entry file
shortcutsKeyboard shortcut configuration
examplesUsage examples and guides
widgetZLE widget functions and interaction
configConfiguration system or files
functionsUtility functions used across widgets
docsMarkdown files under project-docs/
ciGitHub Actions, CI setup
assetsProject 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, not added; fix, not fixed
  • Keep messages under 100 characters if possible
  • Be consistent with emoji and spacing

Happy committing! ๐Ÿš€