Coder Social home page Coder Social logo

commit-emoji's Introduction

commit-emoji

Adorn your conventional commits with emoji.

It will add emoji automatically as a commit-msg git hook, so you only need to specify conventional commit's type and/or specify if a change is breaking (adding a special emoji for breaking changes is optional).

Almost the entire tool's source code is duplicated from the awesomely written lazycc by Óscar García Amor. Thank you for providing this solid foundation! As a result, it is also licensed under GPLv3.

Configuration

commit-emoji contains a built-in default configuration based on my gist, so if you're fine with the selected emoji, you don't have to configure anything.

Custom configuration file can be placed in .commit-emoji.toml in the root of a git repository to provide per-repository settings or in ~/.config/commit-emoji/config.toml to provide global per-user settings.

The values in the config file will override behavior of the default config, not replace it. Configs are not stacked - the first found config will override the defaults.

Supported configuration options are visible in the provided configuration file in the root of this repo.

Operation

  • Run cargo install commit-emoji to install the tool.

  • Run commit-emoji -i from inside a git repo to install the git hook.

  • Run commit-emoji -u from a git repo to remove the hook. Removing the hook is safe - it will check the hook file to be the exact match of what it installed and warn you if you have any modifications in it.

Default replacements

initial - to make your first commit pretty,

deps, devdeps, peerdeps - to bump dependencies easily,

metadata - to update package metadata in Cargo.toml,

typos - to fix typos.

commit-emoji's People

Contributors

berkus avatar github-actions[bot] avatar

Stargazers

Stanislav Tkach avatar Saxon avatar Dima Lazarev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.