Skip to content

πŸ˜ƒ Just use emoji to commit your message and generate CHANGELOG!

Notifications You must be signed in to change notification settings

MrWindlike/git-flow-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Git-Flow-Emoji

πŸ˜ƒ Just use emoji to commit your message and generate CHANGELOG!

πŸ’Ž Usage

Install

# install it globally
npm i git-flow-emoji -g
# in your project
git-flow init

Commit

git add .
npm run commit

commit

Release

npm version <version>

πŸ”¨ Config

You can configure your commit types in .cz-config.js file.

module.exports = {
  // ...
  types: [
    {
      value: ':sparkles: feat',
      name: '✨ A new feature',
    },
  ]
};

Change the commit message when release.

# .npmrc
tag-version-prefix="v"
message=":bookmark: release: release %s"

More details you can find in this repo: https://github.com/conventional-changelog/conventional-changelog

✨ Recommend

There are some recommended types to be used:

Feature

When you develop a new feature of project, you better to commit you messages like this:

# first commit.
# it will be write into CHANGELOG because of type ✨`:sparkles: feat`.
:sparkles: feat: add new feature
# other commits about this feature.
# they will not to be write into CHANGELOG because of type `:construction: WIP`.
:construction: WIP: optimize this feature
:construction: WIP: fix some bugs about this feature

BUGS

# it will be write into CHANGELOG because of type πŸ›`:bug: fix` or πŸš‘`:ambulance: hotfix`.
:bug: fix: fix some bugs
:ambulance: hotfix: emergency fix

UI

# it will be write into CHANGELOG because of type πŸ’„`:lipstick: style`.
:lipstick: style: change style

Refactor

# it will be write into CHANGELOG because of type πŸ”¨`:hammer: refactor style`.
:hammer: refactor: rewrite the code

Others

You can see the descriptions of types to decide which type to be used.

πŸ“ Others

If you see some garbled chart instead of emoji when you run npm run commit, you could install Windows Terminal in Microsoft store to fix it.

Just enjoy it!

About

πŸ˜ƒ Just use emoji to commit your message and generate CHANGELOG!

Resources

Stars

Watchers

Forks

Packages

No packages published