Skip to content
/ gitmo Public

A cli tool that adds appropriate emoji to your commit message based on conventional commits specification

License

Notifications You must be signed in to change notification settings

ize-302/gitmo

Repository files navigation

gitmo

A cli tool that adds appropriate emoji to your commit messages based on conventional commits specification

Demo

About

This cli was built as a simpler alternative to gitmoji-cli. There is no step to pick an emoji, we simply determine the appropriate emoji to use based on your commit message and include it in your message

Install

npm

npm i -g gitmo

Usage

gitmo --help
Usage: gitmo [options] [command]

A cli tool that adds appropriate emoji to your commit message based on conventional commits specification

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  cm [message]    Submit commit
  ac [message]    Amend last commit
  list    List available commit types
  update          Update gitmo cli
  help [command]  display help for command

Example:
  gitmo cm "feat: first commit"

Commit types

| Commit Type | Title                    | Description                                                                                                 | Emoji |
| ----------- | ------------------------ | ----------------------------------------------------------------------------------------------------------- | :---: |
| `feat`      | Features                 | A new feature                                                                                               |  ✨   |
| `fix`       | Bug Fixes                | A bug Fix                                                                                                   |   🐛   |
| `docs`      | Documentation            | Documentation only changes                                                                                  |  📚   |
| `style`     | Styles                   | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)      |  💄   |
| `refactor`  | Code Refactoring         | A code change that neither fixes a bug nor adds a feature                                                   |  📦   |
| `perf`      | Performance Improvements | A code change that improves performance                                                                     |  🚀   |
| `test`      | Tests                    | Adding missing tests or correcting existing tests                                                           |  🚨   |
| `build`     | Builds                   | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)         |  🛠   |
| `ci`        | Continuous Integrations  | Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) |   ⚙️   |
| `chore`     | Chores                   | Other changes that don't modify src or test files                                                           |   ♻️   |
| `revert`    | Reverts                  | Reverts a previous commit                                                                                   |   🗑  |

How to commit

# Note: This should be done after staging your changes
gitmo cm

You get this prompt:

? commit message › ENTER COMMIT MESSAGE HERE

press ENTER


Development

# Build
bun run build

# Run command
node ./dist/index.js cm

Resources used

About

A cli tool that adds appropriate emoji to your commit message based on conventional commits specification

Resources

License

Stars

Watchers

Forks

Packages

No packages published