Giter VIP home page Giter VIP logo

commoji's People

Contributors

tiffafoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

commoji's Issues

Handle emojis in commit message

Bug Description

An error message appears when trying to commit a message with emojis

Repro Steps

  1. git commit -m "🐧Add a penguin"

Expected Behaviour

It should not do any prepending when there are emojis at the start of the commit message. Otherwise it should ignore the emojis and behave as normal.

Input1: 🐧Add a penguin
Output1: 🐧Add a penguin

Input2: Add a 🐧
Output2: ✨ Add a 🐧

Error logs

@matchai fill this

Commoji does not work with other precommit hooks (husky)

Describe the bug

Husky will overwrite or our hook and commoji will not work

Steps to reproduce

  1. Go to a repo with husky configured on it
  2. commoji --init
  3. Error message appears

TODO: More clearer instructions are needed. Plox fill

Expected behavior

Screenshots

Environment (please complete the following information)

  • OS: [e.g. iOS]:
  • Terminal [e.g. iTerm]:
  • Shell [e.g. fish]:
  • commoji version [e.g. 1.0.0]:

Additional context

Handle commit messages with no emoji keys

Feature Description

commoji should not prepend commit messages with emojis when it does not find a qualifying key in its json file.

Current Behaviour

Input: Hello I am a commit message
Output: _Hello I am a commit message (_ is there to represent a whitespace)

Desired Behaviour

Input: Hello I am a commit message
Output: Hello I am a commit message

Possible Implementation

We need to check what currently happens first.

Add uninstall hook

Detailed Description

We want to uninstall in .git and such

Behaviour wanted

Possible Implementation

Add global integration

Detailed Description

Make the --global command, so commoji is automatically applied for all repos.

Behaviour wanted

commoji --global

Possible Implementation

  1. Have global commit hook check for local commit hook.
  2. When hook is running globally, check in commit folder's git hooks (PWD, $1, .git/hooks) and run theirs after ours
  3. Send husky git arguments

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.